summaryrefslogtreecommitdiffstats
path: root/tools/perform/sio_engine.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2016-05-04 16:18:11 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2016-05-04 16:18:11 (GMT)
commit5e94747c52e7ecffdec9262a98caeb5deb5970b2 (patch)
tree2df80f37a16654a4772d2e652d3de037c4e0eee4 /tools/perform/sio_engine.c
parent1bd3635781b6ee98fe27548aa103e9c77173f846 (diff)
downloadhdf5-5e94747c52e7ecffdec9262a98caeb5deb5970b2.zip
hdf5-5e94747c52e7ecffdec9262a98caeb5deb5970b2.tar.gz
hdf5-5e94747c52e7ecffdec9262a98caeb5deb5970b2.tar.bz2
[svn-r29881] Add include guards.
Remove unnecessary includes.
Diffstat (limited to 'tools/perform/sio_engine.c')
-rw-r--r--tools/perform/sio_engine.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/tools/perform/sio_engine.c b/tools/perform/sio_engine.c
index 5622810..505b0f7 100644
--- a/tools/perform/sio_engine.c
+++ b/tools/perform/sio_engine.c
@@ -16,17 +16,23 @@
* Author: Christian Chilan, April 2008
*/
-#include <sys/types.h>
-#include <sys/stat.h>
+#include "hdf5.h"
+
+#ifdef H5_STDC_HEADERS
+#include <errno.h>
+#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
-#include <fcntl.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
#include "sio_perf.h"