summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1998-11-10 18:18:31 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1998-11-10 18:18:31 (GMT)
commite1ae92a6bbf4bc6806d4799107d86c610a000133 (patch)
tree16c52a3e698bf505f9a166a32fb698e5092874a4
parentb7267be71a2040ff7db2c913000a05d825a0a9e0 (diff)
downloadhdf5-e1ae92a6bbf4bc6806d4799107d86c610a000133.zip
hdf5-e1ae92a6bbf4bc6806d4799107d86c610a000133.tar.gz
hdf5-e1ae92a6bbf4bc6806d4799107d86c610a000133.tar.bz2
[svn-r897] added a #ifdef HAVE_UNISTD_H around the unistd.h include
-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