Check for dd_fd in DIR not struct dirent

Pointed out by Ragnnar Sundblad in private mail
This commit is contained in:
Love Hornquist Astrand
2010-03-21 09:08:46 -07:00
parent fea82013eb
commit 32d148b2f8

View File

@@ -653,7 +653,7 @@ int rk_flock(int fd, int operation);
#endif /* HAVE_FLOCK */
#ifndef HAVE_DIRFD
#ifdef HAVE_STRUCT_DIRENT_DD_FD
#ifdef HAVE_DIR_DD_FD
#define dirfd(x) ((x)->dd_fd)
#else
#ifndef _WIN32 /* Windows code never calls dirfd */