diff options
Diffstat (limited to 'ext/etc/extconf.rb')
-rw-r--r-- | ext/etc/extconf.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/ext/etc/extconf.rb b/ext/etc/extconf.rb index dbd0672545..2914bfb196 100644 --- a/ext/etc/extconf.rb +++ b/ext/etc/extconf.rb @@ -24,20 +24,5 @@ if a or b or c 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') - [%w"uid_t pwd.h", %w"gid_t grp.h"].each do |t, *h| - h.unshift("sys/types.h") - f = "INT2NUM" - if have_type(t, h) - if try_static_assert("sizeof(#{t}) > sizeof(long)", h) - f = "LL2NUM" - end - if try_static_assert("(#{t})-1 > 0", h) - f = "U#{f}" - end - end - t = t.chomp('_t').upcase - $defs.push("-DPW_#{t}2VAL=#{f}") - $defs.push("-DPW_VAL2#{t}=#{f.sub(/([A-Z]+)2(NUM)/, '\22\1')}") - end create_makefile("etc") end |