summaryrefslogtreecommitdiffstats
path: root/test/ttsafe.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/ttsafe.h')
-rw-r--r--test/ttsafe.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ttsafe.h b/test/ttsafe.h
index 482e1b2..b4826fc 100644
--- a/test/ttsafe.h
+++ b/test/ttsafe.h
@@ -33,7 +33,9 @@
#ifdef H5_HAVE_THREADSAFE
/* Include pthread library for threadsafe tests */
+#ifdef H5_HAVE_PTHREAD_H
#include <pthread.h>
+#endif /* H5_HAVE_PTHREAD_H */
/* Prototypes for the support routines */
extern char* gen_name(int);