From 76252fa30879d1792794a583b142ced85086877a Mon Sep 17 00:00:00 2001 From: eihrul Date: Fri, 1 Jun 2007 11:22:05 +0000 Subject: [PATCH] *** empty log message *** --- unix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unix.c b/unix.c index 8f157b2..08ac249 100644 --- a/unix.c +++ b/unix.c @@ -80,7 +80,7 @@ enet_address_set_host (ENetAddress * address, const char * name) char buffer [2048]; int errnum; -#if defined(linux) || defined(FREEBSD) +#if defined(linux) || defined(__FreeBSD__) 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(FREEBSD) +#if defined(linux) || defined(__FreeBSD__) 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);