changeset 32155:8f87bb876b97

Simplify mman.h/mmap check.
author diego
date Tue, 14 Sep 2010 12:59:21 +0000
parents e1619533325a
children 68914bed3a8f
files configure
diffstat 1 files changed, 1 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Sep 14 11:03:54 2010 +0000
+++ b/configure	Tue Sep 14 12:59:21 2010 +0000
@@ -3546,13 +3546,8 @@
 
 
 echocheck "mman.h"
-cat > $TMPC << EOF
-#include <sys/types.h>
-#include <sys/mman.h>
-int main(void) { (void) mmap(0, 0, 0, 0, 0, 0); return 0; }
-EOF
 _mman=no
-cc_check && _mman=yes
+function_check sys/mman.h "mmap(0, 0, 0, 0, 0, 0)" && _mman=yes
 if test "$_mman" = yes ; then
   def_mman_h='#define HAVE_SYS_MMAN_H 1'
 else
@@ -3562,7 +3557,6 @@
 echores "$_mman"
 
 cat > $TMPC << EOF
-#include <sys/types.h>
 #include <sys/mman.h>
 int main(void) { void *p = MAP_FAILED; return 0; }
 EOF