mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 14:41:42 +03: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:
parent
a815804590
commit
755913a3d3
1 changed files with 1 additions and 1 deletions
|
|
@ -2633,8 +2633,8 @@ if test "x${je_cv_madvise}" = "xyes" ; then
|
|||
|
||||
dnl Check for process_madvise
|
||||
JE_COMPILABLE([process_madvise(2)], [
|
||||
#include <sys/mman.h>
|
||||
#include <sys/syscall.h>
|
||||
#include <unistd.h>
|
||||
], [
|
||||
syscall(SYS_process_madvise, 0, (void *)0, 0, 0, 0);
|
||||
], [je_cv_process_madvise])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue