diff --git a/lib/roken/roken.h.in b/lib/roken/roken.h.in index 9debbb00b..c48e6188d 100644 --- a/lib/roken/roken.h.in +++ b/lib/roken/roken.h.in @@ -656,9 +656,11 @@ int rk_flock(int fd, int operation); #ifdef HAVE_STRUCT_DIRENT_DD_FD #define dirfd(x) ((x)->dd_fd) #else +#ifndef _WIN32 /* Windows code never calls dirfd */ #error Missing dirfd() and ->dd_fd #endif #endif +#endif ROKEN_LIB_FUNCTION time_t ROKEN_LIB_CALL tm2time (struct tm, int);