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

fix missing dirfd references for FreeBSD

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