summaryrefslogtreecommitdiffstats
path: root/hl/src
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2005-11-14 22:05:22 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2005-11-14 22:05:22 (GMT)
commitbea1e576c5ef5500678f7ce913d835341b625e8f (patch)
tree0cad42b875ca7766330be32000ffd32f75602f2b /hl/src
parent485edae92b451cd6e7cacfed9f9121c2dee77958 (diff)
downloadhdf5-bea1e576c5ef5500678f7ce913d835341b625e8f.zip
hdf5-bea1e576c5ef5500678f7ce913d835341b625e8f.tar.gz
hdf5-bea1e576c5ef5500678f7ce913d835341b625e8f.tar.bz2
[svn-r11711] Purpose: Bug fix for Windows
Description: Windows doesn't have unistd.h file. Solution: Put #ifdef H5_HAVE_UNISTD_H for #include<unistd.h>. Platforms tested: fuss - simple change.
Diffstat (limited to 'hl/src')
-rw-r--r--hl/src/lex.yy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hl/src/lex.yy.c b/hl/src/lex.yy.c
index 499f3bc..4917c21 100644
--- a/hl/src/lex.yy.c
+++ b/hl/src/lex.yy.c
@@ -23,8 +23,9 @@
#define YY_FLEX_MINOR_VERSION 5
#include <stdio.h>
+#ifdef H5_HAVE_UNISTD_H
#include <unistd.h>
-
+#endif
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
#ifdef c_plusplus