summaryrefslogtreecommitdiffstats
path: root/tools/test/perform/direct_write_perf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/test/perform/direct_write_perf.c')
-rw-r--r--tools/test/perform/direct_write_perf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/test/perform/direct_write_perf.c b/tools/test/perform/direct_write_perf.c
index 6537215..b3ae54d 100644
--- a/tools/test/perform/direct_write_perf.c
+++ b/tools/test/perform/direct_write_perf.c
@@ -23,11 +23,14 @@
#if !defined(WIN32) && !defined(__MINGW32__)
+#include <math.h>
+
+#ifdef H5_STDC_HEADERS
#include <errno.h>
#include <fcntl.h>
-#include <math.h>
#include <stdio.h>
#include <stdlib.h>
+#endif
#ifdef H5_HAVE_UNISTD_H
#include <sys/types.h>