Browse Source

Fix up the set of include files pulled into resolv.h

Eric Andersen 23 years ago
parent
commit
229bd42ffc
1 changed files with 9 additions and 1 deletions
  1. 9 1
      include/resolv.h

+ 9 - 1
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 {