aboutsummaryrefslogtreecommitdiffstats
path: root/hash.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-07 08:50:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-07 08:50:39 +0000
commitea74f83e112626a7fbff23a9accd81550dd71ea6 (patch)
tree87670af5537b8aff88943490cde27bd2545f962c /hash.c
parent117181214c8a8d078d03b96124c97cacfc50484c (diff)
downloadruby-ea74f83e112626a7fbff23a9accd81550dd71ea6.tar.gz
util.h: POSIX-noncompliant setenv
* include/ruby/util.h (setenv): remove POSIX-noncompliant definition with 2 arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/hash.c b/hash.c
index 0d963976b9..8d39c347c8 100644
--- a/hash.c
+++ b/hash.c
@@ -3350,8 +3350,6 @@ ruby_setenv(const char *name, const char *value)
invalid_envname(name);
}
#elif defined(HAVE_SETENV) && defined(HAVE_UNSETENV)
-#undef setenv
-#undef unsetenv
if (value) {
if (setenv(name, value, 1))
rb_sys_fail_str(rb_sprintf("setenv(%s)", name));