]> granicus.if.org Git - libexpat/commitdiff
Conditionally include unistd.h
authorJames Clark <jjc@jclark.com>
Fri, 10 Apr 1998 06:30:05 +0000 (06:30 +0000)
committerJames Clark <jjc@jclark.com>
Fri, 10 Apr 1998 06:30:05 +0000 (06:30 +0000)
expat/xmlwf/xmlwf.c

index 3b574dc70a1e9fd0674d7708d1062a5f88c26d18..1eb78d4e815db4ac80dee16d297a3e5f1a692de2 100755 (executable)
@@ -31,6 +31,10 @@ Contributor(s):
 #include <io.h>
 #endif
 
+#ifdef _POSIX_SOURCE
+#include <unistd.h>
+#endif
+
 #ifndef O_BINARY
 #ifdef _O_BINARY
 #define O_BINARY _O_BINARY