summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--ext/etc/etc.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ee2e88c665..47d21b57ef 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Jul 31 23:02:47 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/etc/etc.c: revert getenv()'s prototype. use it only when _WIN32
+ is not defined.
+
Thu Jul 31 15:25:12 2003 NAKAMURA Usaku <usa@ruby-lang.org>
* array.c (rb_ary_collect): must get length of array for each
diff --git a/ext/etc/etc.c b/ext/etc/etc.c
index 50137c87b2..51668c400f 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