mirror of https://code.videolan.org/videolan/vlc
Remove dirfd() hacks
This commit is contained in:
parent
f6287174c4
commit
38227c2441
|
@ -25,12 +25,10 @@
|
|||
#include <dirent.h>
|
||||
#include <errno.h>
|
||||
|
||||
int dirfd (DIR *dir)
|
||||
int (dirfd) (DIR *dir)
|
||||
{
|
||||
#if defined (__sun__) || defined (__FreeBSD__)
|
||||
return dir->dd_fd;
|
||||
#elif defined (__APPLE__)
|
||||
return dir->__dd_fd;
|
||||
#ifdef dirfd
|
||||
return dirfd (dir);
|
||||
#else
|
||||
(void) dir;
|
||||
# ifdef ENOTSUP
|
||||
|
|
|
@ -183,10 +183,7 @@ int fsync (int fd);
|
|||
|
||||
/* dirent.h */
|
||||
#ifndef HAVE_DIRFD
|
||||
#if defined(__APPLE__) || defined(__OS2__) || defined(__FreeBSD__)
|
||||
#undef dirfd
|
||||
#endif
|
||||
int dirfd (DIR *);
|
||||
int (dirfd) (DIR *);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_FDOPENDIR
|
||||
|
|
Loading…
Reference in New Issue