summaryrefslogtreecommitdiffhomepage
path: root/auto
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-09-25 17:53:10 +0300
committerMax Romanov <max.romanov@nginx.com>2017-09-25 17:53:10 +0300
commit2ae044926291c159bc2391e4fb555eaeb2417607 (patch)
tree9f38acb1081f5cfc04c03affa6c33a47d443f3c9 /auto
parent8e2fd89634bedd4570a2d3d885c209a0e1d20d62 (diff)
downloadunit-2ae044926291c159bc2391e4fb555eaeb2417607.tar.gz
unit-2ae044926291c159bc2391e4fb555eaeb2417607.tar.bz2
Checking mallopt() during configure.
mallopt() is absent on Alpine musl.
Diffstat (limited to 'auto')
-rw-r--r--auto/malloc16
1 files changed, 16 insertions, 0 deletions
diff --git a/auto/malloc b/auto/malloc
index c3372cfe..06a16b54 100644
--- a/auto/malloc
+++ b/auto/malloc
@@ -157,3 +157,19 @@ if [ $nxt_found = no ]; then
}"
. auto/feature
fi
+
+
+# Linux mallopt().
+
+nxt_feature="Linux mallopt()"
+nxt_feature_name=NXT_HAVE_MALLOPT
+nxt_feature_run=
+nxt_feature_incs=
+nxt_feature_libs=
+nxt_feature_test="#include <malloc.h>
+
+ int main() {
+ mallopt(M_PERTURB, 0x55);
+ return 0;
+ }"
+. auto/feature