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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user