do not include unistd.h if vc++ is used
authorcaro <caro>
Thu, 19 Feb 2009 20:31:21 +0000 (20:31 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 19 Feb 2009 20:31:21 +0000 (20:31 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eet@39103 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/eet_cipher.c
src/lib/eet_lib.c

index ea9c270..d0cf2e8 100644 (file)
@@ -6,9 +6,12 @@
 #include <string.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <unistd.h>
 #include <sys/mman.h>
 
+#ifndef _MSC_VER
+# include <unistd.h>
+#endif
+
 #ifdef HAVE_NETINET_IN_H
 # include <netinet/in.h>
 #endif
index fdd4910..cef16e3 100644 (file)
@@ -36,9 +36,12 @@ void *alloca (size_t);
 #include <string.h>
 #include <fnmatch.h>
 #include <fcntl.h>
-#include <unistd.h>
 #include <zlib.h>
 
+#ifndef _MSC_VER
+# include <unistd.h>
+#endif
+
 #ifdef HAVE_OPENSSL
 #include <openssl/err.h>
 #endif