Skip to content

Commit

Permalink
skip MAP_NORESERVE when unsupported
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Haubenwallner authored and Bryce Harrington committed Mar 5, 2015
1 parent ac75ab9 commit f72bd7c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/cairo-test-trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
#include <fontconfig/fontconfig.h>
#endif

#ifndef MAP_NORESERVE
#define MAP_NORESERVE 0
#endif

#define DEBUG 0

#define ignore_image_differences 0 /* XXX make me a cmdline option! */
Expand Down
4 changes: 4 additions & 0 deletions util/cairo-sphinx/sphinx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit f72bd7c

Please sign in to comment.