@@ -59,6 +59,30 @@ index 7f290d16..95366592 100644
59
59
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
60
60
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
61
61
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
62
+ diff --git a/swift-corelibs-foundation/Sources/CoreFoundation/CFPlatform.c b/swift-corelibs-foundation/Sources/CoreFoundation/CFPlatform.c
63
+ index 5769a331..238f2ecb 100644
64
+ --- a/swift-corelibs-foundation/Sources/CoreFoundation/CFPlatform.c
65
+ +++ b/swift-corelibs-foundation/Sources/CoreFoundation/CFPlatform.c
66
+ @@ -1948,7 +1948,7 @@ CF_CROSS_PLATFORM_EXPORT void *_CFReallocf(void *ptr, size_t size) {
67
+ #endif
68
+ }
69
+
70
+ - #if TARGET_OS_ANDROID
71
+ + #if TARGET_OS_ANDROID && __ANDROID_API__ < 28
72
+
73
+ #include <dlfcn.h>
74
+ #include <spawn.h>
75
+ @@ -2277,6 +2277,10 @@ CF_EXPORT int _CFPosixSpawnFileActionsAddClose(_CFPosixSpawnFileActionsRef file_
76
+ return _CFPosixSpawnFileActionsAddCloseImpl(file_actions, filedes);
77
+ }
78
+
79
+ + CF_EXPORT int _CFPosixSpawnFileActionsChdir(_CFPosixSpawnFileActionsRef file_actions, const char *path) {
80
+ + return ENOSYS;
81
+ + }
82
+ +
83
+ CF_EXPORT int _CFPosixSpawn(pid_t *_CF_RESTRICT pid, const char *_CF_RESTRICT path, _CFPosixSpawnFileActionsRef file_actions, _CFPosixSpawnAttrRef _Nullable _CF_RESTRICT attrp, char *_Nullable const argv[_Nullable _CF_RESTRICT], char *_Nullable const envp[_Nullable _CF_RESTRICT]) {
84
+ _CFPosixSpawnInitialize();
85
+ return _CFPosixSpawnImpl(pid, path, file_actions, attrp, argv, envp);
62
86
diff --git a/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt b/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt
63
87
index 016bf294..5c42986a 100644
64
88
--- a/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt
0 commit comments