[MPlayer-cvslog] r31433 - trunk/configure

diego subversion at mplayerhq.hu
Wed Jun 16 20:28:00 CEST 2010


Author: diego
Date: Wed Jun 16 20:27:59 2010
New Revision: 31433

Log:
Use a struct timezone as second parameter for gettimeofday in the function test.
This works around (broken?) systems where just #including <sys/time.h> does not
provide NULL.

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Wed Jun 16 19:33:17 2010	(r31432)
+++ trunk/configure	Wed Jun 16 20:27:59 2010	(r31433)
@@ -3987,7 +3987,7 @@ echores "$_select"
 echocheck "gettimeofday()"
 cat > $TMPC << EOF
 #include <sys/time.h>
-int main(void) {struct timeval tv_start; gettimeofday(&tv_start, NULL); return 0; }
+int main(void) {struct timeval tv; struct timezone tz; gettimeofday(&tv, &tz); return 0; }
 EOF
 _gettimeofday=no
 cc_check && _gettimeofday=yes


More information about the MPlayer-cvslog mailing list