* ext/etc/extconf.rb: check for pw_passwd in struct passwd and
gr_passwd in struct group for DJGPP. * ext/etc/etc.c: ditto. * ext/Setup.dj: support for curses, etc, zlib. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
483ac56440
commit
9421725f53
@ -1,3 +1,12 @@
|
|||||||
|
Mon Nov 24 19:32:55 2003 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/etc/extconf.rb: check for pw_passwd in struct passwd and
|
||||||
|
gr_passwd in struct group for DJGPP.
|
||||||
|
|
||||||
|
* ext/etc/etc.c: ditto.
|
||||||
|
|
||||||
|
* ext/Setup.dj: support for curses, etc, zlib.
|
||||||
|
|
||||||
Mon Nov 24 17:00:00 2003 Tanaka Akira <akr@m17n.org>
|
Mon Nov 24 17:00:00 2003 Tanaka Akira <akr@m17n.org>
|
||||||
|
|
||||||
* lib/open-uri.rb: validate option names.
|
* lib/open-uri.rb: validate option names.
|
||||||
|
@ -2,7 +2,7 @@ option nodynamic
|
|||||||
|
|
||||||
#Win32API
|
#Win32API
|
||||||
bigdecimal
|
bigdecimal
|
||||||
#curses
|
curses
|
||||||
dbm
|
dbm
|
||||||
digest
|
digest
|
||||||
digest/md5
|
digest/md5
|
||||||
@ -10,7 +10,7 @@ digest/rmd160
|
|||||||
digest/sha1
|
digest/sha1
|
||||||
digest/sha2
|
digest/sha2
|
||||||
#dl
|
#dl
|
||||||
#etc
|
etc
|
||||||
enumerator
|
enumerator
|
||||||
fcntl
|
fcntl
|
||||||
gdbm
|
gdbm
|
||||||
@ -30,4 +30,4 @@ syck
|
|||||||
#tcltklib
|
#tcltklib
|
||||||
#tk
|
#tk
|
||||||
#win32ole
|
#win32ole
|
||||||
#zlib
|
zlib
|
||||||
|
@ -67,7 +67,9 @@ setup_passwd(pwd)
|
|||||||
if (pwd == 0) rb_sys_fail("/etc/passwd");
|
if (pwd == 0) rb_sys_fail("/etc/passwd");
|
||||||
return rb_struct_new(sPasswd,
|
return rb_struct_new(sPasswd,
|
||||||
safe_setup_str(pwd->pw_name),
|
safe_setup_str(pwd->pw_name),
|
||||||
|
#ifdef HAVE_ST_PW_PASSWD
|
||||||
safe_setup_str(pwd->pw_passwd),
|
safe_setup_str(pwd->pw_passwd),
|
||||||
|
#endif
|
||||||
INT2FIX(pwd->pw_uid),
|
INT2FIX(pwd->pw_uid),
|
||||||
INT2FIX(pwd->pw_gid),
|
INT2FIX(pwd->pw_gid),
|
||||||
#ifdef HAVE_ST_PW_GECOS
|
#ifdef HAVE_ST_PW_GECOS
|
||||||
@ -235,7 +237,9 @@ setup_group(grp)
|
|||||||
}
|
}
|
||||||
return rb_struct_new(sGroup,
|
return rb_struct_new(sGroup,
|
||||||
safe_setup_str(grp->gr_name),
|
safe_setup_str(grp->gr_name),
|
||||||
|
#ifdef HAVE_ST_GR_PASSWD
|
||||||
safe_setup_str(grp->gr_passwd),
|
safe_setup_str(grp->gr_passwd),
|
||||||
|
#endif
|
||||||
INT2FIX(grp->gr_gid),
|
INT2FIX(grp->gr_gid),
|
||||||
mem);
|
mem);
|
||||||
}
|
}
|
||||||
|
@ -12,5 +12,7 @@ if a or b or c
|
|||||||
have_struct_member('struct passwd', 'pw_class', 'pwd.h')
|
have_struct_member('struct passwd', 'pw_class', 'pwd.h')
|
||||||
have_struct_member('struct passwd', 'pw_comment', 'pwd.h') unless /cygwin/ === RUBY_PLATFORM
|
have_struct_member('struct passwd', 'pw_comment', 'pwd.h') unless /cygwin/ === RUBY_PLATFORM
|
||||||
have_struct_member('struct passwd', 'pw_expire', 'pwd.h')
|
have_struct_member('struct passwd', 'pw_expire', 'pwd.h')
|
||||||
|
have_struct_member('struct passwd', 'pw_passwd', 'pwd.h')
|
||||||
|
have_struct_member('struct group', 'gr_passwd', 'grp.h')
|
||||||
create_makefile("etc")
|
create_makefile("etc")
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user