From: Florian Weimer Date: Tue, 10 Sep 2019 11:33:34 +0000 (+0200) Subject: * configure.ac (HAVE_GETTIMEOFDAY): Avoid undeclared exit function. X-Git-Tag: 4.2.92~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f84821b249715f3e4150ee85915219b2122831f1;p=thirdparty%2Fmake.git * configure.ac (HAVE_GETTIMEOFDAY): Avoid undeclared exit function. Copyright-paperwork-exempt: yes --- diff --git a/configure.ac b/configure.ac index f843fdd4..b435ed8b 100644 --- a/configure.ac +++ b/configure.ac @@ -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],