1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* hash.c: need to include errno.h for EINVAL.

* hash.c (ruby_setenv): fixed typo.  see [ruby-dev:40026]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2010-01-12 01:00:34 +00:00
parent 8001de1434
commit ca52e3be5c
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
Tue Jan 12 09:58:03 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* hash.c: need to include errno.h for EINVAL.
* hash.c (ruby_setenv): fixed typo. see [ruby-dev:40026]
Tue Jan 12 09:22:43 2010 Tanaka Akira <akr@fsij.org>
* prelude.rb (require_relative): use File.realpath. [ruby-dev:40040]

3
hash.c
View file

@ -14,6 +14,7 @@
#include "ruby/ruby.h"
#include "ruby/st.h"
#include "ruby/util.h"
#include <errno.h>
#ifdef __APPLE__
#include <crt_externs.h>
@ -2056,7 +2057,7 @@ ruby_setenv(const char *name, const char *value)
putenv(buf);
/* putenv() doesn't handle empty value */
if (*value)
if (!*value)
SetEnvironmentVariable(name,value);
}
else {