From 36a10c5b45451d7b838507c14696fed709e5a96d Mon Sep 17 00:00:00 2001 From: Alex Lorenz Date: Wed, 11 Sep 2024 11:47:13 -0700 Subject: [PATCH] [android] fix the build the posix_filesystem module is available only from Swift, as it comes from the Swift android overlay --- Sources/_TestingInternals/include/Includes.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/_TestingInternals/include/Includes.h b/Sources/_TestingInternals/include/Includes.h index afa4477f5..fe0c67adf 100644 --- a/Sources/_TestingInternals/include/Includes.h +++ b/Sources/_TestingInternals/include/Includes.h @@ -140,7 +140,10 @@ #endif #if defined(__ANDROID__) +#if defined(__swift__) +// The linux/stat header is private in the Android modulemap. #pragma clang module import posix_filesystem.linux_stat +#endif #include #endif