summaryrefslogtreecommitdiff
path: root/ext/etc/etc.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-31 14:03:34 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-31 14:03:34 +0000
commitfabe115f9bb0e22afc7157483237295512581dcf (patch)
tree2d98551d5f2f3b6a5dd30405a2b2f276093ad62c /ext/etc/etc.c
parent5b9afca5e435f37c7affce56e81e6bc20a5d8b3c (diff)
* ext/etc/etc.c: revert getenv()'s prototype. use it only when _WIN32
is not defined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/etc/etc.c')
-rw-r--r--ext/etc/etc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/etc/etc.c b/ext/etc/etc.c
index 50137c8..51668c4 100644
--- a/ext/etc/etc.c
+++ b/ext/etc/etc.c
@@ -25,7 +25,9 @@
static VALUE sPasswd, sGroup;
-char *getenv _((const char *));
+#ifndef _WIN32
+char *getenv();
+#endif
char *getlogin();
static VALUE