From 94a9162baa82809ec58a3d06ca3489c7e7fed6ed Mon Sep 17 00:00:00 2001 From: Sergey Kandaurov Date: Fri, 22 Nov 2019 14:06:02 +0300 Subject: [PATCH] Configure: fixed posix_spawn() detection with glic 2.30. In particular, it was previously broken on Ubuntu 19.10 and Fedora 31. See for details: https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=2ab5741 --- auto/unix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auto/unix b/auto/unix index 5813e5e8..8edf7f1f 100644 --- a/auto/unix +++ b/auto/unix @@ -186,8 +186,8 @@ nxt_feature_libs= nxt_feature_test="#include #include - int main() { - (void) posix_spawn(NULL, NULL, NULL, NULL, NULL, NULL); + int main(int argc, char *argv[]) { + (void) posix_spawn(NULL, \"\", NULL, NULL, argv, NULL); return 0; }" . auto/feature