diff --git a/lib/roken/roken.h.in b/lib/roken/roken.h.in index 8b736c7b0..87a8bab25 100644 --- a/lib/roken/roken.h.in +++ b/lib/roken/roken.h.in @@ -356,10 +356,6 @@ ROKEN_CPP_START #define fsync _commit -#define timezone _timezone - -#define tzname _tzname - #define _PIPE_BUFFER_SZ 8192 #define pipe(fds) _pipe((fds), _PIPE_BUFFER_SZ, O_BINARY); diff --git a/lib/roken/strftime.c b/lib/roken/strftime.c index 447c15543..1dbc6fa9c 100644 --- a/lib/roken/strftime.c +++ b/lib/roken/strftime.c @@ -36,6 +36,11 @@ #include "strpftime-test.h" #endif +#if defined(_WIN32) +# define timezone _timezone +# define tzname _tzname +#endif + static const char *abb_weekdays[] = { "Sun", "Mon",