Provide for updated FreeBSD USB device naming

FreeBSD will eventually have the less verbose bNumDeviceCaps instead of
bNumDeviceCapabilities The other changes are (hopefully) to be
upstreamed renaming bU2devExitLat to wU2devExitLat

FreeBSD in the head of the tree has
/usr/include/libusb20_desc.h:#define bNumDeviceCapabilities bNumDeviceCaps

So we have backward compatibility for this.
pull/1809/head
Diane Bruce 2025-07-20 14:59:10 -04:00 zatwierdzone przez Nate Bargmann
rodzic c14949a86d
commit f25f21264f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: FB2C5130D55A8819
1 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -32,6 +32,15 @@
#include <libusb-1.0/libusb.h>
#endif
#ifdef __FreeBSD__
# ifndef bU2DevExitLat
# define bU2DevExitLat wU2DevExitLat
# endif
# ifndef bNumDeviceCaps
# define bNumDeviceCaps bNumDeviceCapabilities
# endif
#endif
#if HAVE_LIBUSB
int verbose = 0;