From: Gerd Moellmann Date: Mon, 20 Nov 2000 17:24:36 +0000 (+0000) Subject: (MAP_FAILED): Define it as `((void *) -1)' if it's X-Git-Tag: emacs-pretest-21.0.92~268 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=09dfdf85acdae3ebe8e110610a4a5f90e77459b1;p=emacs.git (MAP_FAILED): Define it as `((void *) -1)' if it's not defined in mman.h. --- diff --git a/src/ChangeLog b/src/ChangeLog index e80ec2afb28..85ddee278ba 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2000-11-20 Gerd Moellmann + * 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 diff --git a/src/buffer.c b/src/buffer.c index 1e31c93ea5c..09732cc9bc9 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -4078,6 +4078,10 @@ buffer_slot_type_mismatch (offset) #endif #endif +#ifndef MAP_FAILED +#define MAP_FAILED ((void *) -1) +#endif + #include #include