Check for dirent.h.
[oweals/tinc.git] / have.h
diff --git a/have.h b/have.h
index 9a9efcb8c3ed2a0e0a4aa46f92bdfd3fc7ea745b..cf5c173a107af5ad6588107fd310e9c9f875516e 100644 (file)
--- a/have.h
+++ b/have.h
 #include <sys/uio.h>
 #endif
 
+#ifdef HAVE_DIRENT_H
+#include <dirent.h>
+#endif
+
 /* SunOS really wants sys/socket.h BEFORE net/if.h,
    and FreeBSD wants these lines below the rest. */