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:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user