Always call res_init() before getaddrinfo().
[oweals/tinc.git] / src / have.h
index bcd46127a5c49b00dbfc5ef4601db0fe48d4fc8f..e83f98f48ebe1694e491cdc4e5a50f8f34b3c86b 100644 (file)
 #include <netinet/if_ether.h>
 #endif
 
+#ifdef HAVE_ARPA_NAMESER_H
+#include <arpa/nameser.h>
+#ifdef STATUS
+#undef STATUS
+#endif
+#endif
+
+#ifdef HAVE_RESOLV_H
+#include <resolv.h>
+#endif
+
 #endif /* __TINC_SYSTEM_H__ */