[vlc-devel] commit: Work around missing POSIX.2008 dirfd() on Solaris (fixes: #3029) ( Rémi Denis-Courmont )
git version control
git at videolan.org
Thu Aug 6 19:40:28 CEST 2009
vlc | branch: 1.0-bugfix | Rémi Denis-Courmont <remi at remlab.net> | Thu Aug 6 20:39:37 2009 +0300| [fc2659d7e1d5cb616b07192bd8e05edba1a863e6] | committer: Rémi Denis-Courmont
Work around missing POSIX.2008 dirfd() on Solaris (fixes: #3029)
(cherry picked from commit c43825056e338f45951f67e8d013f8b9c49e9bd0)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fc2659d7e1d5cb616b07192bd8e05edba1a863e6
---
modules/access/directory.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/modules/access/directory.c b/modules/access/directory.c
index 71263b1..dd238e5 100644
--- a/modules/access/directory.c
+++ b/modules/access/directory.c
@@ -50,6 +50,12 @@
#ifdef HAVE_DIRENT_H
# include <dirent.h>
#endif
+#ifdef __sun__
+static inline int dirfd (DIR *dir)
+{
+ return dir->dd_fd;
+}
+#endif
#include <vlc_charset.h>
#include <vlc_url.h>
More information about the vlc-devel
mailing list