Skip to content

Commit

Permalink
Fix for building libusb under Linux.
Browse files Browse the repository at this point in the history
MFC after:	3 days
Sponsored by:	Mellanox Technologies
  • Loading branch information
hselasky committed Mar 10, 2020
1 parent f510b8c commit cc7fabd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/libusb/libusb_global_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,11 @@
} while (0)
#endif

#ifndef TAILQ_FOREACH_SAFE
#define TAILQ_FOREACH_SAFE(var, head, field, tvar) \
for ((var) = TAILQ_FIRST((head)); \
(var) && ((tvar) = TAILQ_NEXT((var), field), 1); \
(var) = (tvar))
#endif

#endif /* _LIBUSB_GLOBAL_LINUX_H_ */

0 comments on commit cc7fabd

Please sign in to comment.