No dirfd() on Windows

This commit is contained in:
Asanka Herath
2009-08-26 14:40:06 -04:00
committed by Love Hornquist Astrand
parent 6ba6a17ebd
commit 78a237e3cc

View File

@@ -205,7 +205,9 @@ load_plugins(krb5_context context)
d = opendir(*di);
if (d == NULL)
continue;
#ifdef HAVE_DIRFD
rk_cloexec(dirfd(d));
#endif
while ((entry = readdir(d)) != NULL) {
char *n = entry->d_name;