Index: uspace/lib/posix/include/posix/sys/mman.h
===================================================================
--- uspace/lib/posix/include/posix/sys/mman.h	(revision 8620b2f4bee911da50b9a6a31d291747857234b0)
+++ uspace/lib/posix/include/posix/sys/mman.h	(revision 8aaf9dc201cc434424e10b9ff04742246686fadd)
@@ -40,5 +40,5 @@
 #endif
 
-#include "sys/types.h"
+#include "types.h"
 #include <abi/mm/as.h>
 
@@ -60,7 +60,8 @@
 #define PROT_EXEC  AS_AREA_EXEC
 
-extern void *mmap(void *start, size_t length, int prot, int flags, int fd,
+extern void *
+__POSIX_DEF__(mmap)(void *start, size_t length, int prot, int flags, int fd,
     __POSIX_DEF__(off_t) offset);
-extern int munmap(void *start, size_t length);
+extern int __POSIX_DEF__(munmap)(void *start, size_t length);
 
 
