]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/compat/misc.c
Merge remote branch 'netafp/master' into branch-allea
[netatalk.git] / libatalk / compat / misc.c
index 2fe6a7f3cfc6adec921b2a7a8ea9a53d0505d18f..cf11aeb45782605b9b8c493d63008c8b6e88158b 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include <atalk/compat.h>
 
 #ifndef HAVE_STRNLEN
@@ -11,5 +15,11 @@ 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