mirror of
https://github.com/coreutils/coreutils.git
synced 2025-01-21 15:43:30 +08:00
Merge from gnulib.
This commit is contained in:
parent
df2b4d3451
commit
d3b8165328
@ -19,19 +19,14 @@
|
||||
#ifndef GETADDRINFO_H
|
||||
# define GETADDRINFO_H
|
||||
|
||||
/* Get all getaddrinfo related declarations, if available. */
|
||||
|
||||
/* sys/socket.h in i386-unknown-freebsd4.10 and
|
||||
powerpc-apple-darwin5.5 require sys/types.h, so include it first.
|
||||
Then we'll also get 'socklen_t' and 'struct sockaddr' which are
|
||||
used below. */
|
||||
# include <sys/types.h>
|
||||
# ifdef HAVE_SYS_SOCKET_H
|
||||
# include <sys/socket.h>
|
||||
# endif
|
||||
# ifdef HAVE_NETDB_H
|
||||
# include <netdb.h>
|
||||
# endif
|
||||
/* Get all getaddrinfo related declarations, if available. */
|
||||
# include <sys/socket.h>
|
||||
# include <netdb.h>
|
||||
|
||||
# ifndef HAVE_STRUCT_ADDRINFO
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user