No dirfd() on Windows
This commit is contained in:

committed by
Love Hornquist Astrand

parent
6ba6a17ebd
commit
78a237e3cc
@@ -205,7 +205,9 @@ load_plugins(krb5_context context)
|
|||||||
d = opendir(*di);
|
d = opendir(*di);
|
||||||
if (d == NULL)
|
if (d == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
#ifdef HAVE_DIRFD
|
||||||
rk_cloexec(dirfd(d));
|
rk_cloexec(dirfd(d));
|
||||||
|
#endif
|
||||||
|
|
||||||
while ((entry = readdir(d)) != NULL) {
|
while ((entry = readdir(d)) != NULL) {
|
||||||
char *n = entry->d_name;
|
char *n = entry->d_name;
|
||||||
|
Reference in New Issue
Block a user