From 78a237e3cc67dbfb1764789384ee259a01d76671 Mon Sep 17 00:00:00 2001 From: Asanka Herath Date: Wed, 26 Aug 2009 14:40:06 -0400 Subject: [PATCH] No dirfd() on Windows --- lib/krb5/plugin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/krb5/plugin.c b/lib/krb5/plugin.c index 027f2a72a..9118ade67 100644 --- a/lib/krb5/plugin.c +++ b/lib/krb5/plugin.c @@ -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;