summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-08-28 15:19:25 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-08-28 15:19:25 (GMT)
commit6fd9deaf78c5c91d0fbd62ecab37506428cd9a6d (patch)
tree5f5069cf0e2700cd85f4f62353e816ab92c809c7 /test
parent70456e13139b8e5fbbfb06a64acc5db40dc5cdac (diff)
downloadhdf5-6fd9deaf78c5c91d0fbd62ecab37506428cd9a6d.zip
hdf5-6fd9deaf78c5c91d0fbd62ecab37506428cd9a6d.tar.gz
hdf5-6fd9deaf78c5c91d0fbd62ecab37506428cd9a6d.tar.bz2
fix get gethostname for windows
Diffstat (limited to 'test')
-rw-r--r--test/h5test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/h5test.c b/test/h5test.c
index 1fb77c1..3cc2c35 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -1082,7 +1082,7 @@ h5_show_hostname(void)
#endif
#ifdef H5_HAVE_GETHOSTNAME
- if (gethostname(hostname, (size_t)80) < 0)
+ if (HDgethostname(hostname, (size_t)80) < 0)
HDprintf(" gethostname failed\n");
else
HDprintf(" hostname=%s\n", hostname);