From e4cddd7d2e781ce6cb26dc7fdbb5a2c290052fc2 Mon Sep 17 00:00:00 2001 From: ocean Date: Wed, 1 Feb 2006 13:27:47 +0000 Subject: * configure.in, hash.c (ruby_setenv): use setenv(3) and unsetenv(3) where they are supported. modifing environ variable seems to segfault solaris 10. [ruby-core:7276] [ruby-dev:28270] * ruby.c (set_arg0): if use setenv(3), environ space cannot be used for altering argv[0]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hash.c') diff --git a/hash.c b/hash.c index 09d866b133..eec6a71e54 100644 --- a/hash.c +++ b/hash.c @@ -1812,7 +1812,7 @@ ruby_setenv(name, value) * RTL's environ global variable directly yet. */ SetEnvironmentVariable(name,value); -#elif defined __CYGWIN__ +#elif defined(HAVE_SETENV) && defined(HAVE_UNSETENV) #undef setenv #undef unsetenv if (value) -- cgit v1.2.3