summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--ext/etc/etc.c6
2 files changed, 4 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 82f05a469c..1ad1aa9f35 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,6 @@
-Thu May 14 16:07:48 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu May 14 16:13:32 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/etc/etc.c (etc_getpwuid): use rb_uid_t. [ruby-dev:38443]
* ext/stringio/stringio.c (strio_ungetbyte): encoding should no
be effective.
diff --git a/ext/etc/etc.c b/ext/etc/etc.c
index 0705606462..c8e52dabc2 100644
--- a/ext/etc/etc.c
+++ b/ext/etc/etc.c
@@ -22,10 +22,6 @@
#include <grp.h>
#endif
-#ifndef HAVE_TYPE_UID_T
-#define uid_t int
-#endif
-
static VALUE sPasswd;
#ifdef HAVE_GETGRENT
static VALUE sGroup;
@@ -124,7 +120,7 @@ etc_getpwuid(int argc, VALUE *argv, VALUE obj)
{
#if defined(HAVE_GETPWENT)
VALUE id;
- uid_t uid;
+ rb_uid_t uid;
struct passwd *pwd;
rb_secure(4);