diff options
author | Florian Weimer <fweimer@redhat.com> | 2022-11-04 07:43:59 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2022-11-04 13:29:52 +0100 |
commit | 2ff48a4025515e93d722947a9eabb114f4a65b22 (patch) | |
tree | 216f88e9284657abd0eec17fbc57ed985c866ebb | |
parent | faaf733f49211439475e50f06716b303ee2644bf (diff) | |
download | glibc-2ff48a4025515e93d722947a9eabb114f4a65b22.tar.gz glibc-2ff48a4025515e93d722947a9eabb114f4a65b22.tar.xz glibc-2ff48a4025515e93d722947a9eabb114f4a65b22.zip |
posix: Make posix_spawn extensions available by default
Some sources merely include <spawn.h> without -D_GNU_SOURCE and expect declarations for posix_spawn_file_actions_addchdir_np to be available. For consistency, declare posix_spawn_file_actions_addfchdir_np, posix_spawn_file_actions_addclosefrom_np, posix_spawn_file_actions_addtcsetpgrp_np as well. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-rw-r--r-- | posix/spawn.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/posix/spawn.h b/posix/spawn.h index c4a81227b0..f3bcbc56be 100644 --- a/posix/spawn.h +++ b/posix/spawn.h @@ -198,7 +198,7 @@ extern int posix_spawn_file_actions_adddup2 (posix_spawn_file_actions_t * int __fd, int __newfd) __THROW __nonnull ((1)); -#ifdef __USE_GNU +#ifdef __USE_MISC /* Add an action changing the directory to PATH during spawn. This affects the subsequent file actions. */ extern int posix_spawn_file_actions_addchdir_np (posix_spawn_file_actions_t * @@ -227,7 +227,7 @@ posix_spawn_file_actions_addtcsetpgrp_np (posix_spawn_file_actions_t *, int __tcfd) __THROW __nonnull ((1)); -#endif +#endif /* __USE_MISC */ __END_DECLS |