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_1q~9 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=98b94544e5dcab065404de1892d2aeb726dd6491;p=oweals%2Fopenssl.git Use both sun and __sun Reviewed-by: Andy Polyakov (cherry picked from commit ed02493567390cac6d07447f193fcaac5b219af3) --- 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 d84ffb446b..c9c7aaf1a7 100644 --- a/e_os.h +++ b/e_os.h @@ -612,7 +612,7 @@ struct servent *PASCAL getservbyname(const char *, const char *); # include # endif -# if defined(__sun) +# if defined(__sun) || defined(sun) # include # else # ifndef VMS @@ -654,7 +654,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