From 888aebb92fefa914e49db25fd984874983dbff7c Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Sat, 27 Feb 2010 19:23:08 -0800 Subject: [PATCH] Windows code never calls dirfd, avoid warning --- lib/roken/roken.h.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/roken/roken.h.in b/lib/roken/roken.h.in index 9767e3566..2d197fd80 100644 --- a/lib/roken/roken.h.in +++ b/lib/roken/roken.h.in @@ -486,9 +486,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 time_t ROKEN_LIB_FUNCTION tm2time (struct tm, int); -- 2.11.4.GIT