Use <sys/mman.h> macros only when they are available
authorDmitri Vorobiev <dmitri.vorobiev@movial.com>
Wed, 22 Sep 2010 09:34:57 +0000 (12:34 +0300)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Thu, 23 Sep 2010 20:02:29 +0000 (16:02 -0400)
commit56777f3f675869806cd30bcd21a5b39d788507cb
tree28d323e64c65145aba7d0ac03a4c8699bfb17f76
parent39524a4687391c68f4177e8671f4b2bd39e05850
Use <sys/mman.h> macros only when they are available

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