diff --git a/configure.ac b/configure.ac index 842c255ed..9bf28ca58 100644 --- a/configure.ac +++ b/configure.ac @@ -4146,15 +4146,11 @@ fi AC_CACHE_CHECK([for struct timespec], ac_cv_have_struct_timespec, [ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ - #ifdef TIME_WITH_SYS_TIME + #ifdef HAVE_SYS_TIME_H # include + #endif + #ifdef HAVE_TIME_H # include - #else - # ifdef HAVE_SYS_TIME_H - # include - # else - # include - # endif #endif ]], [[ struct timespec ts; ts.tv_sec = 1;]])],