diff options
| author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-01 13:27:47 +0000 |
|---|---|---|
| committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-01 13:27:47 +0000 |
| commit | 853b56ba0858996fb986ddd520d38e9c7ecdc042 (patch) | |
| tree | 4c272cba2f525ce2a6c0bc630fc2bf63f24d79f4 /hash.c | |
| parent | 5adc8318383ee9bf23f2147dfc18a93fb85254e6 (diff) | |
| download | ruby-853b56ba0858996fb986ddd520d38e9c7ecdc042.tar.gz ruby-853b56ba0858996fb986ddd520d38e9c7ecdc042.tar.xz ruby-853b56ba0858996fb986ddd520d38e9c7ecdc042.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
| -rw-r--r-- | hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |
