This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Only use setenv() on Solaris if it is available.
authorAndy Dougherty <doughera@lafayette.edu>
Fri, 25 Jul 2014 17:55:32 +0000 (13:55 -0400)
committerAndy Dougherty <doughera@lafayette.edu>
Fri, 25 Jul 2014 20:08:51 +0000 (16:08 -0400)
commit235c1d5fb08d2f9bf82de88220390de5210ac392
tree853c890f69d5d4784ccfa1a4b2279c11edb36a62
parentecd78e215c9b4ab3f3ab71b30e76bbead372a84e
Only use setenv() on Solaris if it is available.

This is a followup to 07ad9e0e19891ec129e1a78e40a66ca19b51302d.
util.c:Perl_my_setenv() unconditionally used setenv() if #defined(__sun).
Solaris 8 had neither setenv() nor unsetenv(), so it failed.  Configure
does not currently check for setenv(), but the check for unsetenv()
is sufficient here since Solaris 9 and later have both.
util.c