Skip to content

Commit d71fa40

Browse files
triplefrokhinip
authored andcommitted
Use generic_sys_queue.h on Android.
The Android implementation of sys/queue.h is missing definitions for TAILQ_CONCAT() and LIST_FOREACH_SAFE(). Signed-off-by: Kim Topley <ktopley@apple.com>
1 parent 947047b commit d71fa40

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,12 @@ upcast(dispatch_object_t dou)
277277
#if defined(_WIN32)
278278
#include <time.h>
279279
#else
280-
#include <sys/queue.h>
281280
#include <sys/mount.h>
282281
#ifdef __ANDROID__
283282
#include <linux/sysctl.h>
284283
#else
285284
#include <sys/sysctl.h>
285+
#include <sys/queue.h>
286286
#endif /* __ANDROID__ */
287287
#include <sys/socket.h>
288288
#include <sys/time.h>

src/shims.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,12 @@
3131
#include <pthread.h>
3232
#else // defined(_WIN32)
3333
#include "shims/generic_win_stubs.h"
34-
#include "shims/generic_sys_queue.h"
3534
#endif // defined(_WIN32)
3635

36+
#if defined(_WIN32) || defined(__ANDROID__)
37+
#include "shims/generic_sys_queue.h"
38+
#endif
39+
3740
#ifdef __ANDROID__
3841
#include "shims/android_stubs.h"
3942
#endif // __ANDROID__
File renamed without changes.

0 commit comments

Comments
 (0)