summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2015-07-10 23:45:32 (GMT)
committerJason Evans <jasone@canonware.com>2015-07-10 23:45:32 (GMT)
commit92d72eeef0d7e08da9de1094546330d5facba11d (patch)
treebe2c06eb710325cbc991557eafbd593ea685d8b6
parent0b8f0bc0a41ad6db469097bf257d85a44f839f5f (diff)
downloadjemalloc-92d72eeef0d7e08da9de1094546330d5facba11d.zip
jemalloc-92d72eeef0d7e08da9de1094546330d5facba11d.tar.gz
jemalloc-92d72eeef0d7e08da9de1094546330d5facba11d.tar.bz2
Fix alloc_size configure test.
-rw-r--r--configure.ac5
1 files changed, 2 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 1363ee9..c6388f7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -431,9 +431,8 @@ fi
dnl Check for alloc_size attribute support.
SAVED_CFLAGS="${CFLAGS}"
JE_CFLAGS_APPEND([-Werror])
-JE_COMPILABLE([alloc_size attribute], [],
- [#include <stdlib.h>
- static void *foo(size_t size) __attribute__((alloc_size(1)));],
+JE_COMPILABLE([alloc_size attribute], [#include <stdlib.h>],
+ [void *foo(size_t size) __attribute__((alloc_size(1)));],
[je_cv_alloc_size])
CFLAGS="${SAVED_CFLAGS}"
if test "x${je_cv_alloc_size}" = "xyes" ; then