Skip to content

Commit ed02493

Browse files
committed
Use both sun and __sun
Reviewed-by: Andy Polyakov <[email protected]>
1 parent 296f7bd commit ed02493

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
@@ -619,7 +619,7 @@ struct servent *PASCAL getservbyname(const char *, const char *);
619619
# include <sys/select.h>
620620
# endif
621621

622-
# if defined(__sun)
622+
# if defined(__sun) || defined(sun)
623623
# include <sys/filio.h>
624624
# else
625625
# ifndef VMS
@@ -661,7 +661,7 @@ struct servent *PASCAL getservbyname(const char *, const char *);
661661

662662
# endif
663663

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

0 commit comments

Comments
 (0)