aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/Makefile.am1
-rw-r--r--include/sys/mman.h14
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
7noinst_HEADERS += string.h 7noinst_HEADERS += string.h
8noinst_HEADERS += unistd.h 8noinst_HEADERS += unistd.h
9noinst_HEADERS += machine/endian.h 9noinst_HEADERS += machine/endian.h
10noinst_HEADERS += sys/mman.h
10noinst_HEADERS += sys/types.h 11noinst_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