[vlc-devel] commit: Work around dirfd compilation breakage ( Rémi Denis-Courmont )

git version control git at videolan.org
Tue Sep 30 17:30:43 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Tue Sep 30 18:33:32 2008 +0300| [aee89ad0a1eeabf5e4ed353da90e308800f04ae3] | committer: Rémi Denis-Courmont 

Work around dirfd compilation breakage

(Not that I expect this to work at run-time)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=aee89ad0a1eeabf5e4ed353da90e308800f04ae3
---

 modules/access/directory.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/access/directory.c b/modules/access/directory.c
index 000e3ca..63e4c84 100644
--- a/modules/access/directory.c
+++ b/modules/access/directory.c
@@ -45,6 +45,10 @@
 #   include <unistd.h>
 #elif defined( WIN32 ) && !defined( UNDER_CE )
 #   include <io.h>
+static inline int dirfd (void *dir)
+{
+    return -1;
+}
 #elif defined( UNDER_CE )
 #   define strcoll strcmp
 #endif




More information about the vlc-devel mailing list