diff options
-rw-r--r-- | src/main.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 6585adc81..3a7139d81 100644 --- a/src/main.c +++ b/src/main.c @@ -50,10 +50,19 @@ #include <winsock.h> #endif -#ifdef HAVE_SYS_TIME_H +#ifdef TIME_WITH_SYS_TIME +/* We can include both fine */ #include <sys/time.h> +#include <time.h> +#else +#ifdef HAVE_SYS_TIME_H +# include <sys/time.h> +#else +# include <time.h> +#endif #endif + #include "version.h" #ifdef HAVE_IO_H /* typical win32 habit */ |