DOS and Windows do not like unistd.h
authorRichard Levitte <levitte@openssl.org>
Mon, 5 Nov 2001 12:43:17 +0000 (12:43 +0000)
committerRichard Levitte <levitte@openssl.org>
Mon, 5 Nov 2001 12:43:17 +0000 (12:43 +0000)
apps/s_time.c
apps/speed.c

index 3b6c808..9ce114d 100644 (file)
@@ -81,7 +81,9 @@
 #include "winmain.h"
 #include "wintext.h"
 #endif
+#if !defined(OPENSSL_SYS_MSDOS)
 #include OPENSSL_UNISTD
+#endif
 
 #if !defined(OPENSSL_SYS_MSDOS) && (!defined(OPENSSL_SYS_VMS) || defined(__DECC)) && !defined(OPENSSL_SYS_MACOSX)
 #define TIMES
index 7010681..5a88204 100644 (file)
@@ -83,7 +83,9 @@
 #include <openssl/err.h>
 #include <openssl/evp.h>
 #include <openssl/objects.h>
+#if !defined(OPENSSL_SYS_MSDOS)
 #include OPENSSL_UNISTD
+#endif
 
 #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(OPENSSL_SYS_MACOSX)
 # define USE_TOD