2002-09-08 Roland McGrath <roland@redhat.com>
authorroland <roland>
Sun, 8 Sep 2002 20:37:01 +0000 (20:37 +0000)
committerroland <roland>
Sun, 8 Sep 2002 20:37:01 +0000 (20:37 +0000)
* resolv/resolv.h: Include <sys/types.h> for u_long even in
the [__need_res_state] case.
Reported by Bruno Haible <bruno@clisp.org>.

resolv/resolv.h

index 0804d24..6454f9c 100644 (file)
  */
 
 #ifndef _RESOLV_H_
+
+/* These headers are needed for types used in the `struct res_state'
+   declaration.  */
+#include <sys/types.h>
+#include <netinet/in.h>
+
 #ifndef __need_res_state
 # define _RESOLV_H_
 
 # include <sys/param.h>
-# if (!defined(BSD)) || (BSD < 199306)
-#  include <sys/bitypes.h>
-# else
-#  include <sys/types.h>
-# endif
 # include <sys/cdefs.h>
 # include <stdio.h>
 # include <arpa/nameser.h>
 #endif
 
-#include <netinet/in.h>
-
 #ifndef __res_state_defined
 # define __res_state_defined