Skip to content

Commit

Permalink
posix_spawn: Fix inconsistency in macro name
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bgamari committed Feb 8, 2024
1 parent 5ba847a commit 024f59b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cbits/posix/posix_spawn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 024f59b

Please sign in to comment.