]> git.eshelyaron.com Git - emacs.git/commitdiff
(MAP_FAILED): Define it as `((void *) -1)' if it's
authorGerd Moellmann <gerd@gnu.org>
Mon, 20 Nov 2000 17:24:36 +0000 (17:24 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 20 Nov 2000 17:24:36 +0000 (17:24 +0000)
not defined in mman.h.

src/ChangeLog
src/buffer.c

index e80ec2afb286e09e84ea6fe9a25cfd1615ecf107..85ddee278ba000a934b680c9dec7cc5d3515c044 100644 (file)
@@ -1,5 +1,8 @@
 2000-11-20  Gerd Moellmann  <gerd@gnu.org>
 
+       * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
+       not defined in mman.h.
+
        * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New
        variables.
        (x_send_scroll_bar_event): Store the window in scroll_bar_windows
index 1e31c93ea5c57c84eb36f4fd10443e4746ac5200..09732cc9bc99dd049d0643f5284bd0b790b3ece1 100644 (file)
@@ -4078,6 +4078,10 @@ buffer_slot_type_mismatch (offset)
 #endif
 #endif
 
+#ifndef MAP_FAILED
+#define MAP_FAILED ((void *) -1)
+#endif
+
 #include <stdio.h>
 #include <errno.h>