summaryrefslogtreecommitdiff
path: root/ext/socket/extconf.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-08 15:37:55 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-08 15:37:55 +0000
commit9e457481438cf8b4dbe033b6fbd5ea612c4529c1 (patch)
tree4d300dde5220bac968cac17be6ccbd103e7b8edc /ext/socket/extconf.rb
parentce6e0937346c4ecf93d7e4eff7b832c5e60edd12 (diff)
* ext/socket/extconf.rb: check sys/param.h and sys/ucred.h.
* ext/socket/rubysocket.h: include sys/param.h and sys/ucred.h. * ext/socket/option.c (inspect_local_peercred): new function to show LOCAL_PEERCRED socket option on FreeBSD. (sockopt_inspect): show as LOCAL_* socket option if AF_UNIX and level is 0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/extconf.rb')
-rw-r--r--ext/socket/extconf.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb
index c7d07d0..f3f4529 100644
--- a/ext/socket/extconf.rb
+++ b/ext/socket/extconf.rb
@@ -293,6 +293,9 @@ have_header("sys/ioctl.h")
have_header("sys/sockio.h")
have_header("net/if.h", headers)
+have_header("sys/param.h", headers)
+have_header("sys/ucred.h", headers)
+
unless have_type("socklen_t", headers)
$defs << "-Dsocklen_t=int"
end