diff options
Diffstat (limited to 'src/helper/time_support.h')
-rw-r--r-- | src/helper/time_support.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/helper/time_support.h b/src/helper/time_support.h index 05dc9119..311c88d3 100644 --- a/src/helper/time_support.h +++ b/src/helper/time_support.h @@ -20,8 +20,16 @@ #ifndef TIME_SUPPORT_H #define TIME_SUPPORT_H -#include <sys/time.h> -#include <time.h> +#ifdef TIME_WITH_SYS_TIME +# include <sys/time.h> +# include <time.h> +#else +# ifdef HAVE_SYS_TIME_H +# include <sys/time.h> +# else +# include <time.h> +# endif +#endif extern int timeval_subtract(struct timeval *result, struct timeval *x, struct timeval *y); extern int timeval_add(struct timeval *result, struct timeval *x, struct timeval *y); |