From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2178) id 42B57385841B; Fri, 4 Nov 2022 12:30:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 42B57385841B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1667565037; bh=T7lHePytwCdX6IpgU9iVROM3qDez2JqekJBXEacFwC0=; h=From:To:Subject:Date:From; b=yGLLFmRzPQ0J2Ykup9im3W7Vml2WRl4uJi1ltXfXgaVllG/yAQ3mx9ysCWPQ6mZOt 3SdI6QvvFDBMZqsKBtM/ZCJ+zqdVVmrZjT2ifO345VKlLYiomuhe3zySG8IozfY6we vHgn6eBLJPE1ymPDoaVEwrxeBmtJHigvBvEg3L1k= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Florian Weimer To: glibc-cvs@sourceware.org Subject: [glibc] posix: Make posix_spawn extensions available by default X-Act-Checkin: glibc X-Git-Author: Florian Weimer X-Git-Refname: refs/heads/master X-Git-Oldrev: faaf733f49211439475e50f06716b303ee2644bf X-Git-Newrev: 2ff48a4025515e93d722947a9eabb114f4a65b22 Message-Id: <20221104123037.42B57385841B@sourceware.org> Date: Fri, 4 Nov 2022 12:30:37 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2ff48a4025515e93d722947a9eabb114f4a65b22 commit 2ff48a4025515e93d722947a9eabb114f4a65b22 Author: Florian Weimer Date: Fri Nov 4 07:43:59 2022 +0100 posix: Make posix_spawn extensions available by default Some sources merely include 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 Diff: --- posix/spawn.h | 4 ++-- 1 file 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