]> arthur.barton.de Git - netatalk.git/commitdiff
Add file for dirfd
authorFrank Lahm <franklahm@googlemail.com>
Sat, 25 Jun 2011 15:29:29 +0000 (17:29 +0200)
committerFrank Lahm <franklahm@googlemail.com>
Sat, 25 Jun 2011 15:29:29 +0000 (17:29 +0200)
libatalk/compat/misc.c [new file with mode: 0644]

diff --git a/libatalk/compat/misc.c b/libatalk/compat/misc.c
new file mode 100644 (file)
index 0000000..f2dc999
--- /dev/null
@@ -0,0 +1,11 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
+#if !defined HAVE_DIRFD && defined SOLARIS
+#include <dirent.h>
+int dirfd(DIR *dir)
+{
+    return dir->dd_fd;
+}
+#endif