aboutsummaryrefslogtreecommitdiff
path: root/tests/enet/unix.c
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2013-09-05 09:26:42 +0700
committerAlon Zakai <alonzakai@gmail.com>2013-09-13 10:07:03 -0700
commitb9c8b95795849264c58be7d1496da3c4078df96c (patch)
treed4e5ec70082f4c03347b7cccdbfde691ae385186 /tests/enet/unix.c
parent2a60fa0c6f107959b754824a525a3d69294b9696 (diff)
gethostbyname_r update.
* gethostbyname_r is now the 6 arg version. * Make enet use the right code path (this should be upstreamed). * Add a compat header to make these declarations visible to all without extra compilation flags.
Diffstat (limited to 'tests/enet/unix.c')
-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 a225b57d..67d4a8b8 100644
--- a/tests/enet/unix.c
+++ b/tests/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(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__EMSCRIPTEN__)
gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum);
#else
hostEntry = gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & errnum);