summaryrefslogtreecommitdiffstats
path: root/test/h5test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/h5test.c')
-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);