summaryrefslogtreecommitdiffstats
path: root/tools/perform/pio_engine.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perform/pio_engine.c')
-rw-r--r--tools/perform/pio_engine.c22
1 files changed, 14 insertions, 8 deletions
diff --git a/tools/perform/pio_engine.c b/tools/perform/pio_engine.c
index 96cfcc2..ad33fa5 100644
--- a/tools/perform/pio_engine.c
+++ b/tools/perform/pio_engine.c
@@ -17,17 +17,23 @@
* Author: Albert Cheng of NCSA, Oct 24, 2001.
*/
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <fcntl.h>
+#include "hdf5.h"
+
+#ifdef H5_STDC_HEADERS
+# include <errno.h>
+# include <fcntl.h>
+# include <stdio.h>
+# include <stdlib.h>
+#endif
+
#ifdef H5_HAVE_UNISTD_H
-#include <unistd.h>
+# include <sys/types.h>
+# include <unistd.h>
#endif
-#include <errno.h>
-#include "hdf5.h"
+#ifdef H5_HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
#ifdef H5_HAVE_PARALLEL