summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2013-09-11 16:57:57 -0300
committerBrian Fraser <fraserbn@gmail.com>2013-09-23 21:21:00 -0300
commitbdea967c6ddd9640355c80b2908ca4f349aa314c (patch)
tree018d9caca791d5f11e21285b397a93ac74345147
parentdd134d2c87088199291548ead0eb89d8d6f7fe60 (diff)
downloadperl-bdea967c6ddd9640355c80b2908ca4f349aa314c.tar.gz
Consistently use __sun to identify SunOS
The core mostly used __sun already, but '__sun__' and 'sun' were also present.
-rw-r--r--perl.h2
-rw-r--r--perlio.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/perl.h b/perl.h
index 163178c0bf..afc2bc8f50 100644
--- a/perl.h
+++ b/perl.h
@@ -4028,7 +4028,7 @@ EXT char *** environ_pointer;
/* VMS and some other platforms don't use the environ array */
# ifdef USE_ENVIRON_ARRAY
# if !defined(DONT_DECLARE_STD) || \
- (defined(__svr4__) && defined(__GNUC__) && defined(sun)) || \
+ (defined(__svr4__) && defined(__GNUC__) && defined(__sun)) || \
defined(__sgi)
extern char ** environ; /* environment variables supplied via exec */
# endif
diff --git a/perlio.c b/perlio.c
index 46933662b0..2591f89ce9 100644
--- a/perlio.c
+++ b/perlio.c
@@ -3169,7 +3169,7 @@ PerlIOStdio_invalidate_fileno(pTHX_ FILE *f)
*/
f->_fileno = -1;
return 1;
-# elif defined(__sun__)
+# elif defined(__sun)
PERL_UNUSED_ARG(f);
return 0;
# elif defined(__hpux)