# HG changeset patch # User diego # Date 1276712879 0 # Node ID a5fcacd9ae651e71f70295de4f69f5ab3eaae043 # Parent 0bf908d29807f82aebb3550cc77a67e120ac4953 Use a struct timezone as second parameter for gettimeofday in the function test. This works around (broken?) systems where just #including does not provide NULL. diff -r 0bf908d29807 -r a5fcacd9ae65 configure --- 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 -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