summaryrefslogtreecommitdiffstats
path: root/test/flush1.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/flush1.c')
-rw-r--r--test/flush1.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/flush1.c b/test/flush1.c
index 4596f86..40db166 100644
--- a/test/flush1.c
+++ b/test/flush1.c
@@ -14,14 +14,17 @@
/* See H5private.h for how to include headers */
#undef NDEBUG
-#include <H5config.h>
+#include <hdf5.h>
#ifdef STDC_HEADERS
# include <stdio.h>
-# include <unistd.h>
+# include <stdlib.h>
#endif
-#include <hdf5.h>
+#ifdef HAVE_UNISTD_H
+# include <sys/types.h>
+# include <unistd.h>
+#endif
#ifndef HAVE_ATTRIBUTE
# undef __attribute__