Work around dirfd compilation breakage
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Tue, 30 Sep 2008 15:33:32 +0000 (18:33 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Tue, 30 Sep 2008 15:33:32 +0000 (18:33 +0300)
(Not that I expect this to work at run-time)

modules/access/directory.c

index 000e3ca..63e4c84 100644 (file)
 #   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