summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2019-11-22 14:06:02 +0300
committerSergey Kandaurov <pluknet@nginx.com>2019-11-22 14:06:02 +0300
commit94a9162baa82809ec58a3d06ca3489c7e7fed6ed (patch)
treeece6299742d0160ef3bbb42d8dc488b85083e730
parent217914df7cf42a39892724ebd5b5d7c2badbbc53 (diff)
downloadunit-94a9162baa82809ec58a3d06ca3489c7e7fed6ed.tar.gz
unit-94a9162baa82809ec58a3d06ca3489c7e7fed6ed.tar.bz2
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
-rw-r--r--auto/unix4
1 files 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 <spawn.h>
#include <unistd.h>
- 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