Allow OPENSSL_NO_SOCK in e_os.h even for non-Windows/DOS platforms
authorDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 20 Feb 2016 15:07:32 +0000 (15:07 +0000)
committerRich Salz <rsalz@openssl.org>
Mon, 7 Mar 2016 19:51:08 +0000 (14:51 -0500)
UEFI needs this too. Don't keep it only in the Windows/DOS ifdef block.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
e_os.h

diff --git a/e_os.h b/e_os.h
index 41ab7bb8d1d95d9699a04980d1f3eeec4a27f4a0..870c7a7e222ee0c2b18750f63d5b54cb4201db26 100644 (file)
--- a/e_os.h
+++ b/e_os.h
@@ -460,10 +460,7 @@ extern int kbhit(void);
 # endif
 
 # ifdef USE_SOCKETS
-#  if defined(WINDOWS) || defined(MSDOS)
-      /* windows world */
-
-#   ifdef OPENSSL_NO_SOCK
+#  ifdef OPENSSL_NO_SOCK
 #    define OpenSSL_Write(a,b,c)       (-1)
 #    define OpenSSL_Read(a,b,c)        (-1)
 #   elif !defined(__DJGPP__)