mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-25 14:23:12 +00:00
Fix the compilation check for process madvise
An include of unistd.h is needed to make the declaration of the syscall function visible to the compiler. The include of sys/mman.h is not used at all.
This commit is contained in:
committed by
Guangli Dai
parent
5e98585b37
commit
ced8b3cffb
@@ -2633,8 +2633,8 @@ if test "x${je_cv_madvise}" = "xyes" ; then
|
|||||||
|
|
||||||
dnl Check for process_madvise
|
dnl Check for process_madvise
|
||||||
JE_COMPILABLE([process_madvise(2)], [
|
JE_COMPILABLE([process_madvise(2)], [
|
||||||
#include <sys/mman.h>
|
|
||||||
#include <sys/syscall.h>
|
#include <sys/syscall.h>
|
||||||
|
#include <unistd.h>
|
||||||
], [
|
], [
|
||||||
syscall(SYS_process_madvise, 0, (void *)0, 0, 0, 0);
|
syscall(SYS_process_madvise, 0, (void *)0, 0, 0, 0);
|
||||||
], [je_cv_process_madvise])
|
], [je_cv_process_madvise])
|
||||||
|
|||||||
Reference in New Issue
Block a user