[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] configure.ac: Fix gettimeofday check for C99 compilers
From: |
Florian Weimer |
Subject: |
[PATCH] configure.ac: Fix gettimeofday check for C99 compilers |
Date: |
Tue, 10 Sep 2019 13:33:34 +0200 |
* configure.ac (HAVE_GETTIMEOFDAY): Avoid reference to undeclared
exit function.
---
configure.ac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index f6919a7..5897ae5 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],
--
2.21.0
- [PATCH] configure.ac: Fix gettimeofday check for C99 compilers,
Florian Weimer <=