]> git.sesse.net Git - vlc/blobdiff - compat/dirfd.c
LGPL
[vlc] / compat / dirfd.c
index a7db741b7d7d23e778f60dc2dbfab10dbe7c4928..263911f61549cb87c6891b1213ade17cb3fcf477 100644 (file)
@@ -10,7 +10,7 @@
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  * GNU Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public License
@@ -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