Commit 22220ec5 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove dirfd() hacks

(cherry picked from commit 38227c24)

Conflicts:

	compat/dirfd.c
	include/vlc_fixups.h
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 87b5f8f6
...@@ -25,12 +25,10 @@ ...@@ -25,12 +25,10 @@
#include <dirent.h> #include <dirent.h>
#include <errno.h> #include <errno.h>
int dirfd (DIR *dir) int (dirfd) (DIR *dir)
{ {
#if defined (__sun__) #ifdef dirfd
return dir->dd_fd; return dirfd (dir);
#elif defined (__APPLE__)
return dir->__dd_fd;
#else #else
(void) dir; (void) dir;
# ifdef ENOTSUP # ifdef ENOTSUP
......
...@@ -183,10 +183,7 @@ int fsync (int fd); ...@@ -183,10 +183,7 @@ int fsync (int fd);
/* dirent.h */ /* dirent.h */
#ifndef HAVE_DIRFD #ifndef HAVE_DIRFD
#if defined(__APPLE__) || defined(__OS2__) int (dirfd) (DIR *);
#undef dirfd
#endif
int dirfd (DIR *);
#endif #endif
#ifndef HAVE_FDOPENDIR #ifndef HAVE_FDOPENDIR
......
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