20 |
# define GETADDRINFO_H |
# define GETADDRINFO_H |
21 |
|
|
22 |
/* Get all getaddrinfo related declarations, if available. */ |
/* Get all getaddrinfo related declarations, if available. */ |
23 |
|
# ifdef HAVE_SYS_TYPES_H |
24 |
|
/* sys/socket.h in i386-unknown-freebsd4.10 and |
25 |
|
powerpc-apple-darwin5.5 require sys/types.h, so include it first. |
26 |
|
Then we'll also get 'socklen_t' and 'struct sockaddr' which are |
27 |
|
used below. */ |
28 |
|
# include <sys/types.h> |
29 |
|
# endif |
30 |
# ifdef HAVE_SYS_SOCKET_H |
# ifdef HAVE_SYS_SOCKET_H |
31 |
# include <sys/socket.h> |
# include <sys/socket.h> |
32 |
# endif |
# endif |
36 |
|
|
37 |
# ifndef HAVE_STRUCT_ADDRINFO |
# ifndef HAVE_STRUCT_ADDRINFO |
38 |
|
|
|
/* Get 'socklen_t', and 'struct sockaddr' via sys/types.h which are |
|
|
used below. */ |
|
|
# ifdef HAVE_SYS_TYPES_H |
|
|
# include <sys/types.h> |
|
|
# endif |
|
|
|
|
39 |
/* Structure to contain information about address of a service provider. */ |
/* Structure to contain information about address of a service provider. */ |
40 |
struct addrinfo |
struct addrinfo |
41 |
{ |
{ |