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 #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;