diff options
author | eihrul <eihrul> | 2007-06-01 11:22:05 +0000 |
---|---|---|
committer | eihrul <eihrul> | 2007-06-01 11:22:05 +0000 |
commit | 76252fa30879d1792794a583b142ced85086877a (patch) | |
tree | a503be04592d8c00a283de4e911b5db2ea72e4a5 /unix.c | |
parent | dab70852907f8b4bfc51652d05423ffd5da1bbd1 (diff) | |
download | enet-76252fa30879d1792794a583b142ced85086877a.tar.gz enet-76252fa30879d1792794a583b142ced85086877a.zip |
*** empty log message ***
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(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); |