Skip to content

Commit 9fbfe54

Browse files
authored
Merge pull request #681 from swiftlang/eng/android-build-fix
[android] fix the build
2 parents 9548fa2 + 36a10c5 commit 9fbfe54

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)