(MAP_FAILED): Define it as `((void *) -1)' if it's

not defined in mman.h.
This commit is contained in:
Gerd Moellmann 2000-11-20 17:24:36 +00:00
parent ff9ab41497
commit 09dfdf85ac
2 changed files with 7 additions and 0 deletions

View 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

View 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>