mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
Fix sycall(2) configure test for Linux.
This commit is contained in:
parent
da206df10b
commit
eca3bc0131
1 changed files with 1 additions and 2 deletions
|
|
@ -379,7 +379,7 @@ case "${host}" in
|
|||
AC_DEFINE([JEMALLOC_PURGE_MADVISE_FREE], [ ])
|
||||
;;
|
||||
*-*-linux*)
|
||||
dnl secure_getenv() is exposed by _GNU_SOURCE.
|
||||
dnl syscall(2) and secure_getenv(3) are exposed by _GNU_SOURCE.
|
||||
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
|
||||
abi="elf"
|
||||
AC_DEFINE([JEMALLOC_HAS_ALLOCA_H])
|
||||
|
|
@ -1385,7 +1385,6 @@ dnl 10.12's deprecation warning prevents use.
|
|||
SAVED_CFLAGS="${CFLAGS}"
|
||||
JE_CFLAGS_APPEND([-Werror])
|
||||
JE_COMPILABLE([syscall(2)], [
|
||||
#define _GNU_SOURCE
|
||||
#include <sys/syscall.h>
|
||||
#include <unistd.h>
|
||||
], [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue