summaryrefslogtreecommitdiff
path: root/resolv
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-09-08 20:37:42 +0000
committerRoland McGrath <roland@gnu.org>2002-09-08 20:37:42 +0000
commit64ca3f329b3232d6926a44fa10b6e9f1cb92687d (patch)
treeab99bc2be1f9ab54e32eaf11e1debf630b36b1f1 /resolv
parent4f58b7c6f7aaed8c886accb8b119a6948d480e71 (diff)
downloadglibc-64ca3f329b3232d6926a44fa10b6e9f1cb92687d.tar.gz
* resolv/resolv.h: Include <sys/types.h> for u_long even in
the [__need_res_state] case. Reported by Bruno Haible <bruno@clisp.org>.
Diffstat (limited to 'resolv')
-rw-r--r--resolv/resolv.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/resolv/resolv.h b/resolv/resolv.h
index 0804d243db..6454f9c3f6 100644
--- a/resolv/resolv.h
+++ b/resolv/resolv.h
@@ -50,22 +50,21 @@
*/
#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