diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-18 01:48:47 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-18 01:48:47 +0000 |
commit | ea1a4f2929ab0cdb85b04c268e5d128f2c0a42c6 (patch) | |
tree | 0252ba3601d8706634c275c9c222825fc9db2786 /ext/etc/extconf.rb | |
parent | 63a23dc678361f9d3031141748d0ba6485516a54 (diff) | |
download | ruby-ea1a4f2929ab0cdb85b04c268e5d128f2c0a42c6.tar.gz |
* 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.rb | 4 |
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') |