diff --git a/src/main.c b/src/main.c index 6585adc81c3f65ad531802b58e8712cadae5f8cb..3a7139d81054ff10d5053bee14a31a0404b754f7 100644 --- a/src/main.c +++ b/src/main.c @@ -50,10 +50,19 @@ #include #endif -#ifdef HAVE_SYS_TIME_H +#ifdef TIME_WITH_SYS_TIME +/* We can include both fine */ #include +#include +#else +#ifdef HAVE_SYS_TIME_H +# include +#else +# include +#endif #endif + #include "version.h" #ifdef HAVE_IO_H /* typical win32 habit */