rk_cloexec_dir uses dirfd that is not available on windows

All unixes have something like it, roken provides macro if not available.
This commit is contained in:
Love Hornquist Astrand
2009-12-23 19:38:21 +01:00
parent 3a09421025
commit 95888d4ad3

View File

@@ -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
}