diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2015-11-24 23:21:06 +0100 |
---|---|---|
committer | Kurt Roeckx <kurt@roeckx.be> | 2015-11-24 23:44:50 +0100 |
commit | 98b94544e5dcab065404de1892d2aeb726dd6491 (patch) | |
tree | c233bd37c056403a6328d051673911ddc4d5ad97 | |
parent | 844de56ed6e96042d364da6020bd29a816293a0a (diff) |
Use both sun and __sun
Reviewed-by: Andy Polyakov <appro@openssl.org>
(cherry picked from commit ed02493567390cac6d07447f193fcaac5b219af3)
-rw-r--r-- | crypto/opensslconf.h.in | 2 | ||||
-rw-r--r-- | e_os.h | 4 |
2 files changed, 3 insertions, 3 deletions
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 @@ -612,7 +612,7 @@ struct servent *PASCAL getservbyname(const char *, const char *); # include <sys/select.h> # endif -# if defined(__sun) +# if defined(__sun) || defined(sun) # include <sys/filio.h> # 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 <stdlib.h> # include <string.h> |