From a46bc974432ad5bd9a2fd5b1539c115804a731fd 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 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);