diff options
author | eihrul <eihrul> | 2010-01-07 23:22:37 +0000 |
---|---|---|
committer | eihrul <eihrul> | 2010-01-07 23:22:37 +0000 |
commit | ea38380174da5ba0f94b627c946f7faf9469c1ae (patch) | |
tree | d837fc4cc9d0cab374fa119f9118d0dc48444eb5 /unix.c | |
parent | 83bf2ead38100237d5435bfefa7d2854bd7255b9 (diff) | |
download | enet-ea38380174da5ba0f94b627c946f7faf9469c1ae.tar.gz enet-ea38380174da5ba0f94b627c946f7faf9469c1ae.zip |
kFreeBSD fixes
Diffstat (limited to 'unix.c')
-rw-r--r-- | unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -80,7 +80,7 @@ enet_address_set_host (ENetAddress * address, const char * name) char buffer [2048]; int errnum; -#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) +#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum); #else hostEntry = gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & errnum); @@ -133,7 +133,7 @@ enet_address_get_host (const ENetAddress * address, char * name, size_t nameLeng in.s_addr = address -> host; -#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) +#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) gethostbyaddr_r ((char *) & in, sizeof (struct in_addr), AF_INET, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum); #else hostEntry = gethostbyaddr_r ((char *) & in, sizeof (struct in_addr), AF_INET, & hostData, buffer, sizeof (buffer), & errnum); |