From ea1a4f2929ab0cdb85b04c268e5d128f2c0a42c6 Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 18 May 2014 01:48:47 +0000 Subject: * ext/etc/etc.c: Etc.sysconf, Etc.confstr and IO#pathconf implemented. * ext/etc/extconf.rb: Check sysconf(), confstr() and fpathconf(). * ext/etc/mkconstants.rb: New file. [ruby-core:62600] [Feature #9842] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/etc/extconf.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/etc/extconf.rb') diff --git a/ext/etc/extconf.rb b/ext/etc/extconf.rb index 26f0ad1364..0609eaa2e3 100644 --- a/ext/etc/extconf.rb +++ b/ext/etc/extconf.rb @@ -14,6 +14,10 @@ have_func("getgrent") sysconfdir = RbConfig.expand(RbConfig::CONFIG["sysconfdir"].dup, "prefix"=>"", "DESTDIR"=>"") $defs.push("-DSYSCONFDIR=#{Shellwords.escape(sysconfdir.dump)}") +have_func("sysconf") +have_func("confstr") +have_func("fpathconf") + have_struct_member('struct passwd', 'pw_gecos', 'pwd.h') have_struct_member('struct passwd', 'pw_change', 'pwd.h') have_struct_member('struct passwd', 'pw_quota', 'pwd.h') -- cgit v1.2.3