summaryrefslogtreecommitdiff
path: root/source4/lib/replace/system
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-11 21:25:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:23 -0500
commit513568b7e2da1fe3ba26fb02228d616b453112ea (patch)
treebcd0509f4c8b7a21febf0a2805774720039f4869 /source4/lib/replace/system
parentfcc7bdf874b82d20d81aa00ede870f53c7910b18 (diff)
downloadsamba-513568b7e2da1fe3ba26fb02228d616b453112ea.tar.gz
samba-513568b7e2da1fe3ba26fb02228d616b453112ea.tar.bz2
samba-513568b7e2da1fe3ba26fb02228d616b453112ea.zip
r18400: move MAP_FAILED define to lib/replace/system/shmem.h
(This used to be commit 025b142ff268498cfb36fc0e7e9e25a2c5963d38)
Diffstat (limited to 'source4/lib/replace/system')
-rw-r--r--source4/lib/replace/system/shmem.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/replace/system/shmem.h b/source4/lib/replace/system/shmem.h
index 9c0458363a..26fa7c8d43 100644
--- a/source4/lib/replace/system/shmem.h
+++ b/source4/lib/replace/system/shmem.h
@@ -48,4 +48,8 @@
#define MAP_FILE 0
#endif
+#ifndef MAP_FAILED
+#define MAP_FAILED ((void *)-1)
+#endif
+
#endif