]> 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 cf11aeb45782605b9b8c493d63008c8b6e88158b..5811531520ddcf860da59a6d76dae346d0e8a191 100644 (file)
@@ -4,6 +4,14 @@
 
 #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)
 {
@@ -15,11 +23,5 @@ size_t strnlen(const char *s, size_t max)
         }
     }
     return len;  
-
-#if !defined HAVE_DIRFD && defined SOLARIS
-#include <dirent.h>
-int dirfd(DIR *dir)
-{
-    return dir->dd_fd;
 }
 #endif