From 024f59b11867f267556eca5d71aed0e6a9f7a157 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Thu, 8 Feb 2024 09:59:17 -0500 Subject: [PATCH] posix_spawn: Fix inconsistency in macro name Previously the `configure` script would check for `posix_spawn_file_actions_addchdir` yet then the implementation would look for `HAVE_posix_spawn_file_actions_addchdir_np`. Fix this. --- cbits/posix/posix_spawn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cbits/posix/posix_spawn.c b/cbits/posix/posix_spawn.c index 32a8d838..39cb52d3 100644 --- a/cbits/posix/posix_spawn.c +++ b/cbits/posix/posix_spawn.c @@ -135,7 +135,7 @@ do_spawn_posix (char *const args[], } if (workingDirectory) { -#if defined(HAVE_posix_spawn_file_actions_addchdir_np) +#if defined(HAVE_posix_spawn_file_actions_addchdir) // N.B. this function is broken on macOS. // See https://github.com/rust-lang/rust/pull/80537. r = posix_spawn_file_actions_addchdir(&fa, workingDirectory);