diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tinyproxy.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/tinyproxy.h b/src/tinyproxy.h index 426cf6a..de0fed7 100644 --- a/src/tinyproxy.h +++ b/src/tinyproxy.h @@ -1,4 +1,4 @@ -/* $Id: tinyproxy.h,v 1.9 2001-06-02 02:07:34 rjkaes Exp $ +/* $Id: tinyproxy.h,v 1.10 2001-06-06 19:33:26 rjkaes Exp $ * * See 'tinyproxy.c' for a detailed description. * @@ -31,7 +31,16 @@ #endif #include <sys/socket.h> #include <sys/stat.h> -#include <sys/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 #include <sys/types.h> #include <sys/uio.h> #include <arpa/inet.h> @@ -51,7 +60,6 @@ #ifdef HAVE_STRINGS_H # include <strings.h> #endif -#include <time.h> #include <unistd.h> #include <assert.h> |