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:
39524a4
)
Use <sys/mman.h> macros only when they are available
author
Dmitri Vorobiev
<dmitri.vorobiev@movial.com>
Wed, 22 Sep 2010 09:34:57 +0000
(12:34 +0300)
committer
Søren Sandmann Pedersen
<ssp@redhat.com>
Thu, 23 Sep 2010 20:02:29 +0000
(16:02 -0400)
Not all systems are regular Unices, so let's be careful with the
mmap()-related stuff, which might be unavailable. This patch makes
sure that mmap() and friends is used only when the <sys/mman.h>
header is found.
test/utils.c
patch
|
blob
|
history
diff --git
a/test/utils.c
b/test/utils.c
index
448c296
..
2ed5051
100644
(file)
--- a/
test/utils.c
+++ b/
test/utils.c
@@
-218,7
+218,7
@@
typedef struct
int n_bytes;
} info_t;
-#if defined(HAVE_MPROTECT) && defined(HAVE_GETPAGESIZE)
+#if defined(HAVE_MPROTECT) && defined(HAVE_GETPAGESIZE)
&& defined(HAVE_SYS_MMAN_H)
/* This is apparently necessary on at least OS X */
#ifndef MAP_ANONYMOUS