Skip to content

Commit

Permalink
FreeBSD define LIBUSB_API_VERSION instead of LIBUSBX_API_VERSION. (#733)
Browse files Browse the repository at this point in the history
  • Loading branch information
lhondareyte authored and xor-gate committed Aug 2, 2018
1 parent 27ce268 commit ae717b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sg.c
Expand Up @@ -963,6 +963,9 @@ static stlink_t* stlink_open(const int verbose) {
return NULL;
}

#if defined (__FreeBSD__)
#define LIBUSBX_API_VERSION LIBUSB_API_VERSION
#endif
#if LIBUSBX_API_VERSION < 0x01000106
libusb_set_debug(slsg->libusb_ctx, 3);
#else
Expand Down

0 comments on commit ae717b9

Please sign in to comment.