diff options
author | Lee Salzman <[email protected]> | 2022-10-11 00:08:04 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2022-10-11 00:08:04 -0400 |
commit | b06d15457909d54cd4fc0ba58c3b257d7e913f7f (patch) | |
tree | 1e32935cc21dcb2b401b566f09aa705cb70df42d | |
parent | 4f8e9bdc4ce6d1f61a6274b0e557065a38190952 (diff) | |
parent | 6800acd9c7c1ccef84feb5f6b40251a90daa3c35 (diff) | |
download | enet-b06d15457909d54cd4fc0ba58c3b257d7e913f7f.tar.gz enet-b06d15457909d54cd4fc0ba58c3b257d7e913f7f.zip |
Merge pull request #209 from daichifukui/dfukui/allow-build-on-hurd-i386
allow build on hurd i386
-rw-r--r-- | unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -148,7 +148,7 @@ enet_address_set_host (ENetAddress * address, const char * name) char buffer [2048]; int errnum; -#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) +#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) || defined(__GNU__) gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum); #else hostEntry = gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & errnum); @@ -220,7 +220,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__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) +#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) || defined(__GNU__) 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); |