Преглед на файлове

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

Eric Andersen преди 23 години
родител
ревизия
229bd42ffc
променени са 1 файла, в които са добавени 9 реда и са изтрити 1 реда
  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 {