diff --git a/configure b/configure index 930f568771b2400..f258ee0d8810128 100755 --- a/configure +++ b/configure @@ -17804,12 +17804,6 @@ if test "x$ac_cv_func_posix_spawnp" = xyes then : printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h -fi -ac_fn_c_check_func "$LINENO" "posix_spawn_file_actions_addclosefrom_np" "ac_cv_func_posix_spawn_file_actions_addclosefrom_np" -if test "x$ac_cv_func_posix_spawn_file_actions_addclosefrom_np" = xyes -then : - printf "%s\n" "#define HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSEFROM_NP 1" >>confdefs.h - fi ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread" if test "x$ac_cv_func_pread" = xyes @@ -17840,6 +17834,12 @@ if test "x$ac_cv_func_pthread_condattr_setclock" = xyes then : printf "%s\n" "#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1" >>confdefs.h +fi +ac_fn_c_check_func "$LINENO" "posix_spawn_file_actions_addclosefrom_np" "ac_cv_func_posix_spawn_file_actions_addclosefrom_np" +if test "x$ac_cv_func_posix_spawn_file_actions_addclosefrom_np" = xyes +then : + printf "%s\n" "#define HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSEFROM_NP 1" >>confdefs.h + fi ac_fn_c_check_func "$LINENO" "pthread_init" "ac_cv_func_pthread_init" if test "x$ac_cv_func_pthread_init" = xyes diff --git a/configure.ac b/configure.ac index 6eb892fec1ae3df..0036be8a5ecebff 100644 --- a/configure.ac +++ b/configure.ac @@ -4775,7 +4775,8 @@ AC_CHECK_FUNCS([ \ lockf lstat lutimes madvise mbrtowc memrchr mkdirat mkfifo mkfifoat \ mknod mknodat mktime mmap mremap nice openat opendir pathconf pause pipe pipe2 \ plock poll posix_fadvise posix_fallocate posix_spawn posix_spawnp pread preadv \ - preadv2 pthread_cond_timedwait_relative_np pthread_condattr_setclock pthread_init pthread_kill \ + preadv2 pthread_cond_timedwait_relative_np pthread_condattr_setclock \ + posix_spawn_file_actions_addclosefrom_np pthread_init pthread_kill \ pwrite pwritev pwritev2 readlink readlinkat readv realpath renameat \ rtpSpawn sched_get_priority_max sched_rr_get_interval sched_setaffinity \ sched_setparam sched_setscheduler sem_clockwait sem_getvalue sem_open \