Fix for building libusb under Linux.

MFC after:	3 days
Sponsored by:	Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2020-03-10 15:59:20 +00:00
parent d845d3dc9a
commit f6428705d8

View File

@ -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_ */