summaryrefslogtreecommitdiff
path: root/source4/lib/replace
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/replace')
-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