Skip to content

Commit 36a10c5

Browse files
committed
[android] fix the build
the posix_filesystem module is available only from Swift, as it comes from the Swift android overlay
1 parent 70f173e commit 36a10c5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/_TestingInternals/include/Includes.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@
140140
#endif
141141

142142
#if defined(__ANDROID__)
143+
#if defined(__swift__)
144+
// The linux/stat header is private in the Android modulemap.
143145
#pragma clang module import posix_filesystem.linux_stat
146+
#endif
144147
#include <sys/system_properties.h>
145148
#endif
146149

0 commit comments

Comments
 (0)