summaryrefslogtreecommitdiff
path: root/gtk/gtkiconcache.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-06-21 03:36:52 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-06-21 03:36:52 +0000
commita4768daec1b55141dcfd759a505fc01709f22b0d (patch)
treeaf88bf9fad332ddb031292dfaa28c2c5685090bb /gtk/gtkiconcache.c
parent1dbcd037c87c23af5db178dd079ff31680fb2da8 (diff)
downloadgtk+-a4768daec1b55141dcfd759a505fc01709f22b0d.tar.gz
Handle missing MAP_FAILED. (#308449, Georg Schwarz)
2005-06-20 Matthias Clasen <mclasen@redhat.com> * xdgmimecache.c: Handle missing MAP_FAILED. (#308449, Georg Schwarz)
Diffstat (limited to 'gtk/gtkiconcache.c')
-rw-r--r--gtk/gtkiconcache.c4
1 files changed, 4 insertions, 0 deletions
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