summaryrefslogtreecommitdiffstats
path: root/e_os.h
diff options
context:
space:
mode:
authorKurt Roeckx <kurt@roeckx.be>2015-11-22 10:31:35 +0100
committerKurt Roeckx <kurt@roeckx.be>2015-11-22 12:16:44 +0100
commit3d32218812e87221344f2985512e42e4aaa88745 (patch)
treeeb4527d662e31da35704b0c58497986c2b0360b5 /e_os.h
parent652d4a8c83f1dd33b2e617e8cc7d0cfea3d0aedf (diff)
Use defined(__sun) instead of defined(sun)
Strict ISO confirming C compilers only define __sun Reviewed-by: Viktor Dukhovni <openssl-users@dukhovni.org> RT #4144, MR #1353
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 4298ec1cea..fcf3af90b7 100644
--- a/e_os.h
+++ b/e_os.h
@@ -553,7 +553,7 @@ struct servent *PASCAL getservbyname(const char *, const char *);
# include <sys/select.h>
# endif
-# if defined(sun)
+# if defined(__sun)
# include <sys/filio.h>
# else
# ifndef VMS
@@ -595,7 +595,7 @@ struct servent *PASCAL getservbyname(const char *, const char *);
# endif
-# if defined(sun) && !defined(__svr4__) && !defined(__SVR4)
+# if defined(__sun) && !defined(__svr4__) && !defined(__SVR4)
/* include headers first, so our defines don't break it */
# include <stdlib.h>
# include <string.h>