Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions lib/Basic/Subprocess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
#define __GLIBC_PREREQ(maj, min) 0
#endif

#ifndef _WIN32
#if !defined(_WIN32) && defined(HAVE_POSIX_SPAWN)
/// MARK: BEGIN: DUPLICATED FROM swiftlang/swift-subprocess
#define _subprocess_precondition(__cond) do { \
int eval = (__cond); \
Expand Down Expand Up @@ -341,9 +341,7 @@ _exit(EXIT_FAILURE)
}
}
/// MARK: END: DUPLICATED FROM swiftlang/swift-subprocess
#endif

#if !defined(_WIN32) && defined(HAVE_POSIX_SPAWN)
static bool posix_spawn_file_actions_addchdir_supported() {
#if (defined(__GLIBC__) && !__GLIBC_PREREQ(2, 29)) || (defined(__OpenBSD__)) || (defined(__ANDROID__) && __ANDROID_API__ < 34) || (defined(__QNX__))
return false;
Expand Down