[MPlayer-cvslog] r32239 - trunk/configure

diego subversion at mplayerhq.hu
Tue Sep 14 14:59:21 CEST 2010


Author: diego
Date: Tue Sep 14 14:59:21 2010
New Revision: 32239

Log:
Simplify mman.h/mmap check.

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Tue Sep 14 13:03:54 2010	(r32238)
+++ trunk/configure	Tue Sep 14 14:59:21 2010	(r32239)
@@ -3546,13 +3546,8 @@ echores "$hardcoded_tables"
 
 
 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 @@ fi
 echores "$_mman"
 
 cat > $TMPC << EOF
-#include <sys/types.h>
 #include <sys/mman.h>
 int main(void) { void *p = MAP_FAILED; return 0; }
 EOF


More information about the MPlayer-cvslog mailing list