diff options
-rw-r--r-- | include/Makefile.am | 1 | ||||
-rw-r--r-- | include/sys/mman.h | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/include/Makefile.am b/include/Makefile.am index d4487d7..4811145 100644 --- a/include/Makefile.am +++ b/include/Makefile.am | |||
@@ -7,4 +7,5 @@ noinst_HEADERS += stdlib.h | |||
7 | noinst_HEADERS += string.h | 7 | noinst_HEADERS += string.h |
8 | noinst_HEADERS += unistd.h | 8 | noinst_HEADERS += unistd.h |
9 | noinst_HEADERS += machine/endian.h | 9 | noinst_HEADERS += machine/endian.h |
10 | noinst_HEADERS += sys/mman.h | ||
10 | noinst_HEADERS += sys/types.h | 11 | noinst_HEADERS += sys/types.h |
diff --git a/include/sys/mman.h b/include/sys/mman.h new file mode 100644 index 0000000..37d36d8 --- /dev/null +++ b/include/sys/mman.h | |||
@@ -0,0 +1,14 @@ | |||
1 | #include_next <sys/mman.h> | ||
2 | |||
3 | #ifndef LIBCRYPTOCOMPAT_MMAN_H | ||
4 | #define LIBCRYPTOCOMPAT_MMAN_H | ||
5 | |||
6 | #ifndef MAP_ANONYMOUS | ||
7 | #ifdef MAP_ANON | ||
8 | #define MAP_ANONYMOUS MAP_ANON | ||
9 | #else | ||
10 | #error "System does not support mapping anonymous pages?" | ||
11 | #endif | ||
12 | #endif | ||
13 | |||
14 | #endif | ||