Skip to content

Commit 98b9454

Browse files
committed
Use both sun and __sun
Reviewed-by: Andy Polyakov <[email protected]> (cherry picked from commit ed02493)
1 parent 844de56 commit 98b9454

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

crypto/opensslconf.h.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
optimization options. Older Sparc's work better with only UNROLL, but
121121
there's no way to tell at compile time what it is you're running on */
122122

123-
#if defined( __sun ) /* Newer Sparc's */
123+
#if defined( __sun ) || defined ( sun ) /* Newer Sparc's */
124124
# define DES_PTR
125125
# define DES_RISC1
126126
# define DES_UNROLL

e_os.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ struct servent *PASCAL getservbyname(const char *, const char *);
612612
# include <sys/select.h>
613613
# endif
614614

615-
# if defined(__sun)
615+
# if defined(__sun) || defined(sun)
616616
# include <sys/filio.h>
617617
# else
618618
# ifndef VMS
@@ -654,7 +654,7 @@ struct servent *PASCAL getservbyname(const char *, const char *);
654654

655655
# endif
656656

657-
# if defined(__sun) && !defined(__svr4__) && !defined(__SVR4)
657+
# if (defined(__sun) || defined(sun)) && !defined(__svr4__) && !defined(__SVR4)
658658
/* include headers first, so our defines don't break it */
659659
# include <stdlib.h>
660660
# include <string.h>

0 commit comments

Comments
 (0)