X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=libsigrok-internal.h;h=95978b2094dba7ce3e54809fe070266a0a640db8;hb=6bf4273ee8bb6477ba55e0540e370547bd804641;hp=a2d9a5a19dbf7c6d7db688b01ad030e25a4e31f2;hpb=71185b48a114a8278e8baac04f5053ae046fdbcf;p=libsigrok.git diff --git a/libsigrok-internal.h b/libsigrok-internal.h index a2d9a5a1..95978b20 100644 --- a/libsigrok-internal.h +++ b/libsigrok-internal.h @@ -43,6 +43,13 @@ #define ARRAY_AND_SIZE(a) (a), ARRAY_SIZE(a) #endif +/* Portability fixes for FreeBSD. */ +#ifdef __FreeBSD__ +#define LIBUSB_CLASS_APPLICATION 0xfe +#define libusb_handle_events_timeout_completed(ctx, tv, c) \ + libusb_handle_events_timeout(ctx, tv) +#endif + struct sr_context { #ifdef HAVE_LIBUSB_1_0 libusb_context *libusb_ctx;