Mercurial > mplayer.hg
changeset 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 | 0bf908d29807 |
children | f73663d84979 |
files | configure |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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