summaryrefslogtreecommitdiff
path: root/include/sys
diff options
context:
space:
mode:
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/mman.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sys/mman.h b/include/sys/mman.h
index 8dc79d909..29973979e 100644
--- a/include/sys/mman.h
+++ b/include/sys/mman.h
@@ -12,6 +12,8 @@
#define MAP_FILE 0x00 /* The 'normal' way: mapped from file */
#endif
+#define MAP_FAILED ((__ptr_t) -1) /* Return value of `mmap' in case of an error. */
+
__BEGIN_DECLS
extern __ptr_t mmap __P((__ptr_t __addr, size_t __len,