]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/compat/misc.c
Active Directory LDAP queries for ACL support
[netatalk.git] / libatalk / compat / misc.c
index 2fe6a7f3cfc6adec921b2a7a8ea9a53d0505d18f..5811531520ddcf860da59a6d76dae346d0e8a191 100644 (file)
@@ -1,5 +1,17 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include <atalk/compat.h>
 
+#if !defined HAVE_DIRFD && defined SOLARIS
+#include <dirent.h>
+int dirfd(DIR *dir)
+{
+    return dir->d_fd;
+}
+#endif
+
 #ifndef HAVE_STRNLEN
 size_t strnlen(const char *s, size_t max)
 {