diff options
author | Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> | 2015-02-26 15:23:01 +0100 |
---|---|---|
committer | Bryce Harrington <b.harrington@samsung.com> | 2015-03-05 14:48:28 -0800 |
commit | f72bd7c7574fc8fdc1f495f3a50111329851edc5 (patch) | |
tree | 7909541f159cd2d96df448397c946dfb3cb28d24 /util | |
parent | ac75ab9f30ef10ee5973d42223f4b51acca93333 (diff) | |
download | cairo-f72bd7c7574fc8fdc1f495f3a50111329851edc5.tar.gz |
skip MAP_NORESERVE when unsupported
Fixes a compilation on AIX ('MAP_NORESERVE' undeclared)
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=89340
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/cairo-sphinx/sphinx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/util/cairo-sphinx/sphinx.c b/util/cairo-sphinx/sphinx.c index 3a6c04c35..238d40064 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" |