summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorVladimir Marek <vlmarek@volny.cz>2014-07-23 17:05:59 +1000
committerTony Cook <tony@develop-help.com>2014-07-23 17:05:59 +1000
commit07ad9e0e19891ec129e1a78e40a66ca19b51302d (patch)
treeb2e0a065bf27df7e0b2143db4992260f1300b62a /util.c
parentb7d34c6cc3dc8c98495164fbce7d2415e0fb8365 (diff)
downloadperl-07ad9e0e19891ec129e1a78e40a66ca19b51302d.tar.gz
use setenv() on Solaris
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 9c28f9e66c..1f9a5b3f00 100644
--- a/util.c
+++ b/util.c
@@ -2072,7 +2072,7 @@ Perl_my_setenv(pTHX_ const char *nam, const char *val)
my_setenv_format(environ[i], nam, nlen, val, vlen);
} else {
# endif
-# if defined(__CYGWIN__)|| defined(__SYMBIAN32__) || defined(__riscos__)
+# if defined(__CYGWIN__)|| defined(__SYMBIAN32__) || defined(__riscos__) || defined(__sun)
# if defined(HAS_UNSETENV)
if (val == NULL) {
(void)unsetenv(nam);