From 36d6d4e103d056ae097459e3e4ea7bd5131115cd Mon Sep 17 00:00:00 2001 From: Michael Haubenwallner Date: Thu, 26 Feb 2015 15:23:01 +0100 Subject: [PATCH] skip MAP_NORESERVE when unsupported, bug#12345 --- test/cairo-test-trace.c | 4 ++++ util/cairo-sphinx/sphinx.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/test/cairo-test-trace.c b/test/cairo-test-trace.c index 52d9dd9..5badc43 100644 --- a/test/cairo-test-trace.c +++ b/test/cairo-test-trace.c @@ -91,6 +91,10 @@ #include #endif +#ifndef MAP_NORESERVE +#define MAP_NORESERVE 0 +#endif + #define DEBUG 0 #define ignore_image_differences 0 /* XXX make me a cmdline option! */ diff --git a/util/cairo-sphinx/sphinx.c b/util/cairo-sphinx/sphinx.c index 3a6c04c..238d400 100644 --- a/util/cairo-sphinx/sphinx.c +++ b/util/cairo-sphinx/sphinx.c @@ -35,6 +35,10 @@ # error "cairo-sphinx needs real pthreads" #endif +#ifndef MAP_NORESERVE +#define MAP_NORESERVE 0 +#endif + #define DATA_SIZE (256 << 20) #define SHM_PATH_XXX "/shmem-cairo-sphinx" -- 2.1.0