mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-19 14:26:01 -04:00
linux: allow "sys/queue.h" to be used on macOS
macOS and other BSD-like systems have <sys/queue.h> header. Fall back to it if bsd/sys/queue.h (provided on Linux by libbsd) is not found.
This commit is contained in:
parent
4a3d0525f2
commit
e7e059cc0a
@ -1 +1,7 @@
|
||||
#include "bsd/sys/queue.h"
|
||||
#if __has_include(<bsd/sys/queue.h>)
|
||||
/* On Linux, try using sys/queue.h provided by libbsd-dev */
|
||||
#include <bsd/sys/queue.h>
|
||||
#else
|
||||
/* Fall back to sys/queue.h which may exist e.g. on macOS */
|
||||
#include_next <sys/queue.h>
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user