From 95888d4ad3a0030ade64459c5cc0c5c50012b78e Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Wed, 23 Dec 2009 19:38:21 +0100 Subject: [PATCH] rk_cloexec_dir uses dirfd that is not available on windows All unixes have something like it, roken provides macro if not available. --- lib/roken/cloexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/roken/cloexec.c b/lib/roken/cloexec.c index 0f2ef2f65..2d1fe033f 100644 --- a/lib/roken/cloexec.c +++ b/lib/roken/cloexec.c @@ -60,7 +60,7 @@ rk_cloexec_file(FILE *f) void ROKEN_LIB_FUNCTION rk_cloexec_dir(DIR * d) { -#ifdef HAVE_DIRFD +#ifndef _WIN32 rk_cloexec(dirfd(d)); #endif }