diff options
author | Fukui Daichi <[email protected]> | 2022-10-10 12:36:11 +0000 |
---|---|---|
committer | Fukui Daichi <[email protected]> | 2022-10-10 12:36:16 +0000 |
commit | 6800acd9c7c1ccef84feb5f6b40251a90daa3c35 (patch) | |
tree | 1e32935cc21dcb2b401b566f09aa705cb70df42d /unix.c | |
parent | 4f8e9bdc4ce6d1f61a6274b0e557065a38190952 (diff) | |
download | enet-6800acd9c7c1ccef84feb5f6b40251a90daa3c35.tar.gz enet-6800acd9c7c1ccef84feb5f6b40251a90daa3c35.zip |
allow build on hurd i386
This patch originates with:
https://salsa.debian.org/games-team/enet/-/commit/88648f10bd19d658167b0d303bef05e9e6144278
Diffstat (limited to 'unix.c')
-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); |