Mercurial > mplayer.hg
diff configure @ 31367:a5fcacd9ae65
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.
author | diego |
---|---|
date | Wed, 16 Jun 2010 18:27:59 +0000 |
parents | 1fe3bf45f4e6 |
children | d005a8241dec |
line wrap: on
line diff
--- a/configure Wed Jun 16 17:33:17 2010 +0000 +++ b/configure Wed Jun 16 18:27:59 2010 +0000 @@ -3987,7 +3987,7 @@ 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