From 8c6d4505329f94446084ca93eae10cd796d79a8d Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sat, 26 Jan 2019 22:41:05 -0500 Subject: new framework for building sources after gitlab migration --- nonstd/stubs/sys/mman.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 nonstd/stubs/sys/mman.h (limited to 'nonstd/stubs/sys/mman.h') diff --git a/nonstd/stubs/sys/mman.h b/nonstd/stubs/sys/mman.h new file mode 100644 index 00000000..01a201eb --- /dev/null +++ b/nonstd/stubs/sys/mman.h @@ -0,0 +1,13 @@ +#include "nonstd/types.h" + +#ifndef PROT_READ +# define PROT_READ 0x1 +#endif +#ifndef PROT_WRITE +# define PROT_WRITE 0x2 +#endif +#ifndef MAP_PRIVATE +# define MAP_PRIVATE 0x02 +#endif + +#define mmap(_a, _l, _p, _f, _d, _o) __libc.syscall(__libc.syscall_lookup("mmap"), _a, _l, _p, _f, _d, _o) -- cgit v1.2.1