summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sys/mman/mmap.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/sys/mman/mmap.c b/src/sys/mman/mmap.c
index 412c67db..e76e2439 100644
--- a/src/sys/mman/mmap.c
+++ b/src/sys/mman/mmap.c
@@ -1,8 +1,14 @@
+#include "sys/types.h"
#include <sys/mman.h>
+#include "../../_syscall.h"
+
+#ifndef MAP_FAILED
+#include "MAP_FAILED.c"
+#endif
void *mmap(void *addr, size_t len, int prot, int flags, int fildes, off_t off)
{
- return addr;
+ SYSCALL(mmap, void*, MAP_FAILED, addr, len, prot, flags, fildes, off);
}
/*