summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.h b/src/common/util.h
index 3554b3673d..ba5319e563 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -26,7 +26,7 @@
#elif defined(_MSC_VER)
#include <winsock.h>
#endif
-#ifndef HAVE_STRUCT_TIMEVAL_TV_SEC
+#if !defined(HAVE_GETTIMEOFDAY) && !defined(HAVE_STRUCT_TIMEVAL_TV_SEC)
struct timeval {
time_t tv_sec;
unsigned int tv_usec;