Skip to content

Commit 2800c1a

Browse files
committed
Base: include headers appropriately for android
Android has the newer syscalls available but the declarations were not being pulled in. Add the appropriate handling.
1 parent e3fe2b5 commit 2800c1a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CoreFoundation/Base.subproj/ForSwiftFoundationOnly.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@
5555
#include <malloc/malloc.h>
5656
#endif
5757

58-
#if TARGET_OS_LINUX
58+
#if TARGET_OS_ANDROID
59+
#include <sys/stat.h>
60+
#include <sys/syscall.h>
61+
#elif TARGET_OS_LINUX
5962
#include <features.h>
6063

6164
#if __GLIBC_PREREQ(2, 28) == 0

0 commit comments

Comments
 (0)