From 2ae044926291c159bc2391e4fb555eaeb2417607 Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Mon, 25 Sep 2017 17:53:10 +0300 Subject: Checking mallopt() during configure. mallopt() is absent on Alpine musl. --- auto/malloc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'auto/malloc') 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 + + int main() { + mallopt(M_PERTURB, 0x55); + return 0; + }" +. auto/feature -- cgit