From: Kurt Roeckx Date: Tue, 24 Nov 2015 22:21:06 +0000 (+0100) Subject: Use both sun and __sun X-Git-Tag: OpenSSL_1_0_2e~13 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ed02493567390cac6d07447f193fcaac5b219af3;p=oweals%2Fopenssl.git Use both sun and __sun Reviewed-by: Andy Polyakov --- diff --git a/crypto/opensslconf.h.in b/crypto/opensslconf.h.in index d8e6abcf16..7a1c85d6ec 100644 --- a/crypto/opensslconf.h.in +++ b/crypto/opensslconf.h.in @@ -120,7 +120,7 @@ optimization options. Older Sparc's work better with only UNROLL, but there's no way to tell at compile time what it is you're running on */ -#if defined( __sun ) /* Newer Sparc's */ +#if defined( __sun ) || defined ( sun ) /* Newer Sparc's */ # define DES_PTR # define DES_RISC1 # define DES_UNROLL diff --git a/e_os.h b/e_os.h index 8ac36735d8..1fa36c1719 100644 --- a/e_os.h +++ b/e_os.h @@ -619,7 +619,7 @@ struct servent *PASCAL getservbyname(const char *, const char *); # include # endif -# if defined(__sun) +# if defined(__sun) || defined(sun) # include # else # ifndef VMS @@ -661,7 +661,7 @@ struct servent *PASCAL getservbyname(const char *, const char *); # endif -# if defined(__sun) && !defined(__svr4__) && !defined(__SVR4) +# if (defined(__sun) || defined(sun)) && !defined(__svr4__) && !defined(__SVR4) /* include headers first, so our defines don't break it */ # include # include