Commit 3ac083ca authored by Geraud CONTINSOUZAS's avatar Geraud CONTINSOUZAS Committed by Rafaël Carré

fix missing dirfd references for FreeBSD

Signed-off-by: default avatarRafaël Carré <funman@videolan.org>
parent 28f37b5f
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
int dirfd (DIR *dir) int dirfd (DIR *dir)
{ {
#if defined (__sun__) #if defined (__sun__) || defined (__FreeBSD__)
return dir->dd_fd; return dir->dd_fd;
#elif defined (__APPLE__) #elif defined (__APPLE__)
return dir->__dd_fd; return dir->__dd_fd;
......
...@@ -183,7 +183,7 @@ int fsync (int fd); ...@@ -183,7 +183,7 @@ int fsync (int fd);
/* dirent.h */ /* dirent.h */
#ifndef HAVE_DIRFD #ifndef HAVE_DIRFD
#if defined(__APPLE__) || defined(__OS2__) #if defined(__APPLE__) || defined(__OS2__) || defined(__FreeBSD__)
#undef dirfd #undef dirfd
#endif #endif
int dirfd (DIR *); int dirfd (DIR *);
......
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