Use both sun and __sun
authorKurt Roeckx <kurt@roeckx.be>
Tue, 24 Nov 2015 22:21:06 +0000 (23:21 +0100)
committerKurt Roeckx <kurt@roeckx.be>
Tue, 24 Nov 2015 22:44:05 +0000 (23:44 +0100)
Reviewed-by: Andy Polyakov <appro@openssl.org>
crypto/opensslconf.h.in
e_os.h

index d8e6abcf16be5e81ee6a6f87aca050d5fb2f617a..7a1c85d6ec9da07d1f64715bc689a0801c735d12 100644 (file)
    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 8ac36735d8093a4dfd2aad805ae5091ac4325d88..1fa36c17198082a143947f844cfe28d4150c7e0a 100644 (file)
--- a/e_os.h
+++ b/e_os.h
@@ -619,7 +619,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
@@ -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 <stdlib.h>
 #  include <string.h>