Windows code never calls dirfd, avoid warning

This commit is contained in:
Love Hornquist Astrand
2010-02-27 19:23:08 -08:00
parent 94a8d9c5e5
commit a46bc97443

View File

@@ -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);