Commit 44c39efd authored by Naohiro Koriyama's avatar Naohiro Koriyama Committed by Rémi Denis-Courmont

Implement dirfd() on MacOS

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent bb338c69
......@@ -29,6 +29,8 @@ int dirfd (DIR *dir)
{
#if defined (__sun__)
return dir->dd_fd;
#elif defined (__APPLE__)
return dir->__dd_fd;
#else
(void) dir;
# ifdef ENOTSUP
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment