1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00

* resolv/resolv.h: Include <sys/types.h> for u_long even in

the [__need_res_state] case.
	Reported by Bruno Haible <bruno@clisp.org>.
This commit is contained in:
Roland McGrath
2002-09-08 20:37:42 +00:00
parent 4f58b7c6f7
commit 64ca3f329b
6 changed files with 70 additions and 41 deletions

View File

@ -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