[vlc-commits] Implement dirfd() on MacOS

Naohiro Koriyama git at videolan.org
Tue Oct 11 18:05:44 CEST 2011


vlc | branch: master | Naohiro Koriyama <nkoriyama at gmail.com> | Tue Oct 11 19:05:05 2011 +0300| [44c39efdc1f486c898c315b3c0e3640000d2b9fb] | committer: Rémi Denis-Courmont

Implement dirfd() on MacOS

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=44c39efdc1f486c898c315b3c0e3640000d2b9fb
---

 compat/dirfd.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/compat/dirfd.c b/compat/dirfd.c
index a7db741..99d79f9 100644
--- a/compat/dirfd.c
+++ b/compat/dirfd.c
@@ -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



More information about the vlc-commits mailing list