Lines 104-110
enet_address_set_host (ENetAddress * add
Link Here
|
104 |
char buffer [2048]; |
104 |
char buffer [2048]; |
105 |
int errnum; |
105 |
int errnum; |
106 |
|
106 |
|
107 |
#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) |
107 |
#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) |
108 |
gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum); |
108 |
gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum); |
109 |
#else |
109 |
#else |
110 |
hostEntry = gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & errnum); |
110 |
hostEntry = gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & errnum); |
Lines 162-168
enet_address_get_host (const ENetAddress
Link Here
|
162 |
|
162 |
|
163 |
in.s_addr = address -> host; |
163 |
in.s_addr = address -> host; |
164 |
|
164 |
|
165 |
#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) |
165 |
#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) |
166 |
gethostbyaddr_r ((char *) & in, sizeof (struct in_addr), AF_INET, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum); |
166 |
gethostbyaddr_r ((char *) & in, sizeof (struct in_addr), AF_INET, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum); |
167 |
#else |
167 |
#else |
168 |
hostEntry = gethostbyaddr_r ((char *) & in, sizeof (struct in_addr), AF_INET, & hostData, buffer, sizeof (buffer), & errnum); |
168 |
hostEntry = gethostbyaddr_r ((char *) & in, sizeof (struct in_addr), AF_INET, & hostData, buffer, sizeof (buffer), & errnum); |