changeset 5677:bad1899438ed

From Derek Price: Define MAP_FAILED when necessary.
author Bruno Haible <bruno@clisp.org>
date Thu, 03 Mar 2005 20:33:06 +0000
parents 4b054c347e26
children 6868adf039ec
files m4/mmap-anon.m4
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/m4/mmap-anon.m4
+++ b/m4/mmap-anon.m4
@@ -49,6 +49,11 @@
 [/* 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
 ])