19 |
#ifndef GETADDRINFO_H |
#ifndef GETADDRINFO_H |
20 |
# define GETADDRINFO_H |
# define GETADDRINFO_H |
21 |
|
|
|
/* Get all getaddrinfo related declarations, if available. */ |
|
|
# ifdef HAVE_SYS_TYPES_H |
|
22 |
/* sys/socket.h in i386-unknown-freebsd4.10 and |
/* sys/socket.h in i386-unknown-freebsd4.10 and |
23 |
powerpc-apple-darwin5.5 require sys/types.h, so include it first. |
powerpc-apple-darwin5.5 require sys/types.h, so include it first. |
24 |
Then we'll also get 'socklen_t' and 'struct sockaddr' which are |
Then we'll also get 'socklen_t' and 'struct sockaddr' which are |
25 |
used below. */ |
used below. */ |
26 |
# include <sys/types.h> |
# include <sys/types.h> |
27 |
# endif |
/* Get all getaddrinfo related declarations, if available. */ |
28 |
# ifdef HAVE_SYS_SOCKET_H |
# include <sys/socket.h> |
29 |
# include <sys/socket.h> |
# include <netdb.h> |
|
# endif |
|
|
# ifdef HAVE_NETDB_H |
|
|
# include <netdb.h> |
|
|
# endif |
|
30 |
|
|
31 |
# ifndef HAVE_STRUCT_ADDRINFO |
# ifndef HAVE_STRUCT_ADDRINFO |
32 |
|
|