projects
/
gnulib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0e2788
)
From Derek Price: Define MAP_FAILED when necessary.
author
Bruno Haible
<bruno@clisp.org>
Thu, 3 Mar 2005 20:33:06 +0000
(20:33 +0000)
committer
Bruno Haible
<bruno@clisp.org>
Thu, 3 Mar 2005 20:33:06 +0000
(20:33 +0000)
m4/mmap-anon.m4
patch
|
blob
|
history
diff --git
a/m4/mmap-anon.m4
b/m4/mmap-anon.m4
index
3a6e0bf
..
2abbe55
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
])