From: Twaik Yont <9674930+twaik@users.noreply.github.com> Signed-off-by: Twaik Yont <9674930+twaik@users.noreply.github.com> --- configure | 6 ++++++ configure.ac | 1 + include/config.h.in | 3 +++ 3 files changed, 10 insertions(+) diff --git a/configure b/configure index fda5e60e415..118009ca227 100755 --- a/configure +++ b/configure @@ -21980,6 +21980,12 @@ if test "x$ac_cv_func_posix_fallocate" = xyes then : printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h +fi +ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn" +if test "x$ac_cv_func_posix_spawn" = xyes +then : + printf "%s\n" "#define HAVE_POSIX_SPAWN 1" >>confdefs.h + fi ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl" if test "x$ac_cv_func_prctl" = xyes diff --git a/configure.ac b/configure.ac index 485a1370b06..3cfb61a1adb 100644 --- a/configure.ac +++ b/configure.ac @@ -2119,6 +2119,7 @@ AC_CHECK_FUNCS(\ port_create \ posix_fadvise \ posix_fallocate \ + posix_spawn \ prctl \ process_vm_readv \ process_vm_writev \ diff --git a/include/config.h.in b/include/config.h.in index 551771eaa6a..82d08d53b5f 100644 --- a/include/config.h.in +++ b/include/config.h.in @@ -336,6 +336,9 @@ /* Define to 1 if you have the 'posix_fallocate' function. */ #undef HAVE_POSIX_FALLOCATE +/* Define to 1 if you have the 'posix_spawn' function. */ +#undef HAVE_POSIX_SPAWN + /* Define to 1 if you have the 'prctl' function. */ #undef HAVE_PRCTL -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10926