File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -77,8 +77,8 @@ int pthread_fchdir_np(int fd)
77
77
78
78
#if !defined(_WIN32) && defined(HAVE_POSIX_SPAWN)
79
79
// Implementation mostly copied from _CFPosixSpawnFileActionsChdir in swift-corelibs-foundation
80
- static int posix_spawn_file_actions_addchdir (posix_spawn_file_actions_t * __restrict file_actions,
81
- const char * __restrict path) {
80
+ static int posix_spawn_file_actions_addchdir_polyfill (posix_spawn_file_actions_t * __restrict file_actions,
81
+ const char * __restrict path) {
82
82
#if defined(__GLIBC__) && !__GLIBC_PREREQ(2, 29)
83
83
// Glibc versions prior to 2.29 don't support posix_spawn_file_actions_addchdir_np, impacting:
84
84
// - Amazon Linux 2 (EoL mid-2025)
@@ -779,7 +779,7 @@ void llbuild::basic::spawnProcess(
779
779
bool usePosixSpawnChdirFallback = true ;
780
780
const auto workingDir = attr.workingDir .str ();
781
781
if (!workingDir.empty () &&
782
- posix_spawn_file_actions_addchdir (&fileActions, workingDir.c_str ()) != ENOSYS) {
782
+ posix_spawn_file_actions_addchdir_polyfill (&fileActions, workingDir.c_str ()) != ENOSYS) {
783
783
usePosixSpawnChdirFallback = false ;
784
784
}
785
785
You can’t perform that action at this time.
0 commit comments