We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1793f59 commit 78134c7Copy full SHA for 78134c7
lib/Basic/Subprocess.cpp
@@ -55,7 +55,7 @@
55
#define __GLIBC_PREREQ(maj, min) 0
56
#endif
57
58
-#ifndef _WIN32
+#if !defined(_WIN32) && defined(HAVE_POSIX_SPAWN)
59
/// MARK: BEGIN: DUPLICATED FROM swiftlang/swift-subprocess
60
#define _subprocess_precondition(__cond) do { \
61
int eval = (__cond); \
@@ -341,9 +341,7 @@ _exit(EXIT_FAILURE)
341
}
342
343
/// MARK: END: DUPLICATED FROM swiftlang/swift-subprocess
344
-#endif
345
346
-#if !defined(_WIN32) && defined(HAVE_POSIX_SPAWN)
347
static bool posix_spawn_file_actions_addchdir_supported() {
348
#if (defined(__GLIBC__) && !__GLIBC_PREREQ(2, 29)) || (defined(__OpenBSD__)) || (defined(__ANDROID__) && __ANDROID_API__ < 34) || (defined(__QNX__))
349
return false;
0 commit comments