Published in <sxshexirelo.fsf@florida.arsdigita.de>.
+2001-06-14 Hrvoje Niksic <hniksic@arsdigita.com>
+
+ * sysdep.h (MAP_FAILED): Provide MAP_FAILED for systems that don't
+ define it.
+
2001-06-09 Jan Prikryl <prikryl@cg.tuwien.ac.at>
* ftp.h: Provide correct prototype for ftp_parse_ls().
#endif /* sun */
#endif /* STDC_HEADERS */
+/* Some systems don't provide MAP_FAILED, a symbolic constant for the
+ value returned by mmap() when it doesn't work. Usually, this
+ constant should be -1. This only makes sense for files that use
+ mmap() and include sys/mman.h *before* sysdep.h, but doesn't hurt
+ others. */
+
+#ifndef MAP_FAILED
+# define MAP_FAILED ((void *) -1)
+#endif
+
#endif /* SYSDEP_H */