diff options
Diffstat (limited to 'ext/etc/etc.c')
-rw-r--r-- | ext/etc/etc.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ext/etc/etc.c b/ext/etc/etc.c index 1c52535c40..7fbe2e9ae0 100644 --- a/ext/etc/etc.c +++ b/ext/etc/etc.c @@ -673,11 +673,17 @@ Init_etc(void) rb_define_module_function(mEtc, "systmpdir", etc_systmpdir, 0); sPasswd = rb_struct_define(NULL, - "name", "passwd", "uid", "gid", + "name", +#ifdef HAVE_STRUCT_PASSWD_PW_PASSWD + "passwd", +#endif + "uid", + "gid", #ifdef HAVE_STRUCT_PASSWD_PW_GECOS "gecos", #endif - "dir", "shell", + "dir", + "shell", #ifdef HAVE_STRUCT_PASSWD_PW_CHANGE "change", #endif |