summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/resolv.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/resolv.h b/include/resolv.h
index 950795a28..4f6feed20 100644
--- a/include/resolv.h
+++ b/include/resolv.h
@@ -12,7 +12,15 @@
#ifndef _RESOLV_H_
#define _RESOLV_H_
-#include <netdb.h>
+#include <features.h>
+
+#include <sys/param.h>
+#if (!defined(BSD)) || (BSD < 199306)
+# include <sys/bitypes.h>
+#else
+# include <sys/types.h>
+#endif
+#include <stdio.h>
#include <netinet/in.h>
struct resolv_header {