* configure.ac (HAVE_GETTIMEOFDAY): Avoid undeclared exit function.

Copyright-paperwork-exempt: yes
This commit is contained in:
Florian Weimer 2019-09-10 13:33:34 +02:00 committed by Paul Smith
parent 99d1423059
commit f84821b249

View file

@ -127,8 +127,8 @@ AC_CACHE_CHECK([for standard gettimeofday], [ac_cv_func_gettimeofday],
int main ()
{
struct timeval t; t.tv_sec = -1; t.tv_usec = -1;
exit (gettimeofday (&t, 0) != 0
|| t.tv_sec < 0 || t.tv_usec < 0);
return gettimeofday (&t, 0) != 0
|| t.tv_sec < 0 || t.tv_usec < 0;
}]])],
[ac_cv_func_gettimeofday=yes],
[ac_cv_func_gettimeofday=no],