Fix for building libusb under Linux.
MFC after: 3 days Sponsored by: Mellanox Technologies
This commit is contained in:
parent
d845d3dc9a
commit
f6428705d8
@ -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_ */
|
||||
|
Loading…
Reference in New Issue
Block a user