summaryrefslogtreecommitdiff
path: root/ext/socket/extconf.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-10-31 23:26:19 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-10-31 23:26:19 +0000
commit5dbc3d1e7919f1ee2058baec9555684ee0babed0 (patch)
treea0a988169f2bde8a12fb41e7b300c6b465cf0a47 /ext/socket/extconf.rb
parent24176a8d5d98ea7d1eb3971ffb7fad7f9ccd2adb (diff)
* ext/socket/init.c (cloexec_accept): new function to use accept4 if
available. (rsock_s_accept_nonblock): use cloexec_accept. (accept_blocking): ditto. * ext/socket/extconf.rb: check accept4. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/extconf.rb')
-rw-r--r--ext/socket/extconf.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb
index 380b3ec..473f89f 100644
--- a/ext/socket/extconf.rb
+++ b/ext/socket/extconf.rb
@@ -397,6 +397,8 @@ EOF
end
end
+have_func("accept4")
+
$objs = [
"init.#{$OBJEXT}",
"constants.#{$OBJEXT}",