summaryrefslogtreecommitdiffstats
path: root/tools/perform/pio_engine.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2016-04-20 18:16:51 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2016-04-20 18:16:51 (GMT)
commit9ddf2090df0aaadd3368d2ef92d486129265952e (patch)
tree4f0990b7b6f089b1197ca1dd07e027fd39360c4d /tools/perform/pio_engine.c
parentb38491a7c2580661ea7117b093799d49c93e34c7 (diff)
downloadhdf5-9ddf2090df0aaadd3368d2ef92d486129265952e.zip
hdf5-9ddf2090df0aaadd3368d2ef92d486129265952e.tar.gz
hdf5-9ddf2090df0aaadd3368d2ef92d486129265952e.tar.bz2
[svn-r29753] HDFFV-9770: Fix Windows compile errors.
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