mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Define MCL_CURRENT, MCL_FUTURE in bits/mman-linux.h
* sysdeps/unix/sysv/linux/s390/bits/mman.h: Include <bits/mman-linux.h>. (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value is fine. * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of <bits/mman-linux.h> to end of file. (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value is fine. * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of <bits/mman-linux.h> to end of file. (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value is fine. * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of <bits/mman-linux.h> to end of file. * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT] (MCL_CURRENT, MCL_FUTURE): Define here.
This commit is contained in:
@ -22,10 +22,6 @@
|
||||
|
||||
/* The following definitions basically come from the kernel headers.
|
||||
But the kernel header is not namespace clean. */
|
||||
/* Include generic Linux declarations. */
|
||||
|
||||
#include <bits/mman-linux.h>
|
||||
|
||||
|
||||
#define PROT_SAO 0x10 /* Strong Access Ordering. */
|
||||
|
||||
@ -46,3 +42,6 @@
|
||||
#define MCL_CURRENT 0x2000 /* Lock all currently mapped pages. */
|
||||
#define MCL_FUTURE 0x4000 /* Lock all additions to address
|
||||
space. */
|
||||
|
||||
/* Include generic Linux declarations. */
|
||||
#include <bits/mman-linux.h>
|
||||
|
Reference in New Issue
Block a user