ext/etc/extconf.rb in etc-1.0.1 vs ext/etc/extconf.rb in etc-1.1.0

- old
+ new

@@ -39,12 +39,14 @@ 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_passwd', 'pwd.h') have_struct_member('struct group', 'gr_passwd', 'grp.h') +# for https://github.com/ruby/etc srcdir = File.expand_path("..", __FILE__) -if !File.exists?("#{srcdir}/constdefs.h") +if !File.exist?("#{srcdir}/depend") %x[#{RbConfig.ruby} #{srcdir}/mkconstants.rb -o #{srcdir}/constdefs.h] end + $distcleanfiles << "constdefs.h" create_makefile("etc")