diff options
-rw-r--r-- | driver.c | 1 | ||||
-rw-r--r-- | fetchmail.h | 12 |
2 files changed, 12 insertions, 1 deletions
@@ -23,7 +23,6 @@ #if defined(HAVE_SYS_ITIMER_H) #include <sys/itimer.h> #endif -#include <sys/time.h> #include <signal.h> #ifdef HAVE_SYS_WAIT_H #include <sys/wait.h> diff --git a/fetchmail.h b/fetchmail.h index 146b1712..b47d6293 100644 --- a/fetchmail.h +++ b/fetchmail.h @@ -22,6 +22,18 @@ #include <stdio.h> +/* We need this for time_t */ +#if TIME_WITH_SYS_TIME +# include <sys/time.h> +# include <time.h> +#else +# if HAVE_SYS_TIME_H +# include <sys/time.h> +# else +# include <time.h> +# endif +#endif + /* constants designating the various supported protocols */ #define P_AUTO 1 #define P_POP2 2 |