summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-11-06 07:17:31 +0000
committered <ed@FreeBSD.org>2009-11-06 07:17:31 +0000
commitb38978f7902a3c12b4e958fa7159e29ea2d39d9a (patch)
tree83e094a8c866a30ad8e36f5bbff5d6cb5ceeead8 /sys
parent632be2941cd3f940b7f465970dfc8ae0e361d158 (diff)
downloadFreeBSD-src-b38978f7902a3c12b4e958fa7159e29ea2d39d9a.zip
FreeBSD-src-b38978f7902a3c12b4e958fa7159e29ea2d39d9a.tar.gz
Add MAP_ANONYMOUS.
Many operating systems also provide MAP_ANONYMOUS. It's not hard to support this ourselves, we'd better add it to make it more likely for applications to work out of the box. Reviewed by: alc (mman.h)
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/mman.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/mman.h b/sys/sys/mman.h
index 9b64e89..12c0133 100644
--- a/sys/sys/mman.h
+++ b/sys/sys/mman.h
@@ -82,6 +82,9 @@
*/
#define MAP_FILE 0x0000 /* map from file (default) */
#define MAP_ANON 0x1000 /* allocated from memory, swap space */
+#ifndef _KERNEL
+#define MAP_ANONYMOUS MAP_ANON /* For compatibility. */
+#endif /* !_KERNEL */
/*
* Extended flags
OpenPOWER on IntegriCloud