From 7e03fc35f528c7776dac0b4dc0b6814ca012986b Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 18 Apr 2023 23:47:28 +0200 Subject: Add posix_spawn_file_actions_add{f}chdir_np MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These are defined as _np functions and available in glibc, musl, macOS, FreeBSD, Solaris ≥ 11.3 They are likely to be standardized without the _np suffix as a result of Austin Group issue 1208. if so, both names will be kept as aliases. Introduce HAVE_CHDIR and HAVE_FCHDIR to allow building on systems not providing these calls. Signed-off-by: Corinna Vinschen --- newlib/configure.host | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib/configure.host') diff --git a/newlib/configure.host b/newlib/configure.host index 0a1ba282a..5f427526d 100644 --- a/newlib/configure.host +++ b/newlib/configure.host @@ -587,7 +587,7 @@ case "${host}" in default_newlib_io_long_double="yes" default_newlib_io_pos_args="yes" CC="${CC} -I${cygwin_srcdir}/include" - newlib_cflags="${newlib_cflags} -DHAVE_OPENDIR -DHAVE_RENAME -DGETREENT_PROVIDED -DSIGNAL_PROVIDED -DHAVE_BLKSIZE -DHAVE_FCNTL -DMALLOC_PROVIDED" + newlib_cflags="${newlib_cflags} -DHAVE_OPENDIR -DHAVE_RENAME -DGETREENT_PROVIDED -DSIGNAL_PROVIDED -DHAVE_BLKSIZE -DHAVE_FCNTL -DMALLOC_PROVIDED -DHAVE_CHDIR -DHAVE_FCHDIR" syscall_dir=syscalls ;; # RTEMS supplies its own versions of some routines: -- cgit v1.2.3