kopia lustrzana https://github.com/Hamlib/Hamlib
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
rodzic
c14949a86d
commit
f25f21264f
|
@ -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;
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue