aboutsummaryrefslogtreecommitdiff
path: root/tests/enet
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-09-13 10:52:48 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-09-13 10:52:48 -0700
commit5a37214c5bdf39641d480bb4dd67bd5fc26427a0 (patch)
tree76f6cb90b7bfefe35279db2990ba95d8c651b345 /tests/enet
parent08af46501f9da4afa1debdd23ab612cb9abb0483 (diff)
second enet fix to handle musl headers in emscripten
Diffstat (limited to 'tests/enet')
-rw-r--r--tests/enet/unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/enet/unix.c b/tests/enet/unix.c
index 67d4a8b8..292eb29b 100644
--- a/tests/enet/unix.c
+++ b/tests/enet/unix.c
@@ -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(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__EMSCRIPTEN__)
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);