Skip to content

Commit

Permalink
Support for FreeBSD bus name
Browse files Browse the repository at this point in the history
Adapted from a patch by https://github.com/yurivict
  • Loading branch information
aguinet committed Feb 26, 2019
1 parent a4b74d2 commit 92ad2a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/buses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@

#include <tuple>

#if defined(__FreeBSD__)
#define USB_DEVICE_START "usbus"
#else
#define USB_DEVICE_START "usbmon"
#endif

static size_t g_len_usb_dev_start = strlen(USB_DEVICE_START);

Expand Down

0 comments on commit 92ad2a3

Please sign in to comment.