projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
From Derek Price: Define MAP_FAILED when necessary.
[pspp]
/
m4
/
mmap-anon.m4
diff --git
a/m4/mmap-anon.m4
b/m4/mmap-anon.m4
index 3a6e0bf202c7042fceb5a2a9edb4e0cbe44b363e..2abbe5589887252dc53fc038e753ee681a4305b2 100644
(file)
--- a/
m4/mmap-anon.m4
+++ b/
m4/mmap-anon.m4
@@
-49,6
+49,11
@@
AC_DEFUN([gl_FUNC_MMAP_ANON],
[/* Define MAP_FILE when it isn't otherwise. */
#ifndef MAP_FILE
# define MAP_FILE 0
+#endif
+
+/* Define MAP_FAILED for old systems which neglect to. */
+#ifndef MAP_FAILED
+# define MAP_FAILED ((void *)-1)
#endif])
fi
])