diff --git a/src/main.c b/src/main.c index 6585adc81c..3a7139d810 100644 --- a/src/main.c +++ b/src/main.c @@ -50,9 +50,18 @@ #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"