summaryrefslogtreecommitdiff
path: root/ext/etc/extconf.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-18 01:48:47 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-18 01:48:47 +0000
commitea1a4f2929ab0cdb85b04c268e5d128f2c0a42c6 (patch)
tree0252ba3601d8706634c275c9c222825fc9db2786 /ext/etc/extconf.rb
parent63a23dc678361f9d3031141748d0ba6485516a54 (diff)
* 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
Diffstat (limited to 'ext/etc/extconf.rb')
-rw-r--r--ext/etc/extconf.rb4
1 files changed, 4 insertions, 0 deletions
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')