summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/h5test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/h5test.c b/test/h5test.c
index b1a6d2f..027cb82 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -588,7 +588,12 @@ h5_show_hostname(void)
printf("thread 0.");
}
#elif defined(H5_HAVE_THREADSAFE)
+#ifdef WIN32
+ printf("some thread: no way to know the thread number from pthread on windows.");
+#else
printf("thread %d.", (int)pthread_self());
+#endif
+
#else
printf("thread 0.");
#endif