From a4768daec1b55141dcfd759a505fc01709f22b0d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 21 Jun 2005 03:36:52 +0000 Subject: Handle missing MAP_FAILED. (#308449, Georg Schwarz) 2005-06-20 Matthias Clasen * xdgmimecache.c: Handle missing MAP_FAILED. (#308449, Georg Schwarz) --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ gtk/gtkiconcache.c | 4 ++++ gtk/xdgmime/ChangeLog | 5 +++++ gtk/xdgmime/xdgmimecache.c | 4 ++++ 6 files changed, 28 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3c71d3e957..afd1bded1e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-06-20 Matthias Clasen + + * gtk/gtkiconcache.c: Handle MAP_FAILED. (#308449, Georg + Schwarz) + 2005-06-20 Matthias Clasen * configure.in: Bump version number. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 3c71d3e957..afd1bded1e 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2005-06-20 Matthias Clasen + + * gtk/gtkiconcache.c: Handle MAP_FAILED. (#308449, Georg + Schwarz) + 2005-06-20 Matthias Clasen * configure.in: Bump version number. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 3c71d3e957..afd1bded1e 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2005-06-20 Matthias Clasen + + * gtk/gtkiconcache.c: Handle MAP_FAILED. (#308449, Georg + Schwarz) + 2005-06-20 Matthias Clasen * configure.in: Bump version number. diff --git a/gtk/gtkiconcache.c b/gtk/gtkiconcache.c index d52251c5a3..9eb58cce2e 100644 --- a/gtk/gtkiconcache.c +++ b/gtk/gtkiconcache.c @@ -42,6 +42,10 @@ #define _O_BINARY 0 #endif +#ifndef MAP_FAILED +#define MAP_FAILED ((void *) -1) +#endif + #define MAJOR_VERSION 1 #define MINOR_VERSION 0 diff --git a/gtk/xdgmime/ChangeLog b/gtk/xdgmime/ChangeLog index 8af43ed4da..5d2f23aef4 100644 --- a/gtk/xdgmime/ChangeLog +++ b/gtk/xdgmime/ChangeLog @@ -1,3 +1,8 @@ +2005-06-20 Matthias Clasen + + * xdgmimecache.c: Handle missing MAP_FAILED. (#308449, Georg + Schwarz) + 2005-06-20 Matthias Clasen * === Released 2.7.0 === diff --git a/gtk/xdgmime/xdgmimecache.c b/gtk/xdgmime/xdgmimecache.c index 9992f02ac3..4f09a4b073 100644 --- a/gtk/xdgmime/xdgmimecache.c +++ b/gtk/xdgmime/xdgmimecache.c @@ -65,6 +65,10 @@ #define _O_BINARY 0 #endif +#ifndef MAP_FAILED +#define MAP_FAILED ((void *) -1) +#endif + #define MAJOR_VERSION 1 #define MINOR_VERSION 0 -- cgit v1.2.1