From 09dfdf85acdae3ebe8e110610a4a5f90e77459b1 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 20 Nov 2000 17:24:36 +0000 Subject: [PATCH] (MAP_FAILED): Define it as `((void *) -1)' if it's not defined in mman.h. --- src/ChangeLog | 3 +++ src/buffer.c | 4 ++++ 2 files changed, 7 insertions(+) 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 -- 2.39.2