summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-08-28 15:19:03 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-08-28 15:19:03 (GMT)
commit43ff3fdc33acfb46badb63d00971644821cbad25 (patch)
treee23cb0c75d13158b0597e772467002cc24d6a318 /test
parenta6df73c723b4ef604e2a0aab06efc72e30b0478a (diff)
downloadhdf5-43ff3fdc33acfb46badb63d00971644821cbad25.zip
hdf5-43ff3fdc33acfb46badb63d00971644821cbad25.tar.gz
hdf5-43ff3fdc33acfb46badb63d00971644821cbad25.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 7cb5345..dd8d906 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -1193,7 +1193,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);