projects
/
platform
/
upstream
/
pixman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19ea0e1
)
If MAP_ANONYMOUS is not defined, define it to MAP_ANON.
author
Søren Sandmann Pedersen
<ssp@redhat.com>
Tue, 21 Sep 2010 18:12:00 +0000
(14:12 -0400)
committer
Søren Sandmann Pedersen
<ssp@redhat.com>
Tue, 21 Sep 2010 18:12:00 +0000
(14:12 -0400)
This hopefully fixes the build failure on OS X.
test/utils.c
patch
|
blob
|
history
diff --git
a/test/utils.c
b/test/utils.c
index
2cd763d
..
448c296
100644
(file)
--- a/
test/utils.c
+++ b/
test/utils.c
@@
-220,6
+220,11
@@
typedef struct
#if defined(HAVE_MPROTECT) && defined(HAVE_GETPAGESIZE)
+/* This is apparently necessary on at least OS X */
+#ifndef MAP_ANONYMOUS
+#define MAP_ANONYMOUS MAP_ANON
+#endif
+
void *
fence_malloc (uint32_t len)
{