summaryrefslogtreecommitdiffstats
path: root/e_os.h
diff options
context:
space:
mode:
authorKurt Roeckx <kurt@roeckx.be>2015-11-24 23:21:06 +0100
committerKurt Roeckx <kurt@roeckx.be>2015-11-24 23:44:05 +0100
commited02493567390cac6d07447f193fcaac5b219af3 (patch)
tree0918b7b2de7c3a90d23f78a9978093d1f50900e2 /e_os.h
parent296f7bd1ace9383648795b24bf2f3c10d0b9ca47 (diff)
Use both sun and __sun
Reviewed-by: Andy Polyakov <appro@openssl.org>
Diffstat (limited to 'e_os.h')
-rw-r--r--e_os.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/e_os.h b/e_os.h
index 8ac36735d8..1fa36c1719 100644
--- 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>