From 7a052715ef6876fe7674c3bc392aed6c1a9b3422 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Fri, 13 Nov 2009 03:17:41 +0000 Subject: [PATCH] more permissive linux check git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4733 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/enet/unix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/enet/unix.c b/source/enet/unix.c index 1ccdc4c8..2a9ef04b 100755 --- a/source/enet/unix.c +++ b/source/enet/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(__linux) || 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(__linux) || 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);