summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/h5import.c3
-rw-r--r--tools/h5repart.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/tools/h5import.c b/tools/h5import.c
index 9fc2454..a5c030a 100644
--- a/tools/h5import.c
+++ b/tools/h5import.c
@@ -13,8 +13,9 @@
#include <stdlib.h>
#include <stdio.h>
#include <sys/stat.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
-
+#endif
/*-------------------------------------------------------------------------
* Function: usage
diff --git a/tools/h5repart.c b/tools/h5repart.c
index 03ef471..4561a91 100644
--- a/tools/h5repart.c
+++ b/tools/h5repart.c
@@ -19,8 +19,9 @@
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
-
+#endif
#define FALSE 0
#define TRUE 1
#define NAMELEN 4096