summaryrefslogtreecommitdiffstats
path: root/ext/socket/extconf.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-06-04 07:34:19 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-06-04 07:34:19 +0000
commit31230ec3de8249cb2a0d1fb11ae87853b2d2edd4 (patch)
treea65171fc36999a1cc3c537a0b8bf62ddd9b16f77 /ext/socket/extconf.rb
parent1258af1e28d321ce14e1ba5e342ccc279e081f18 (diff)
downloadruby-31230ec3de8249cb2a0d1fb11ae87853b2d2edd4.tar.gz
ruby-31230ec3de8249cb2a0d1fb11ae87853b2d2edd4.tar.xz
ruby-31230ec3de8249cb2a0d1fb11ae87853b2d2edd4.zip
* string.c (rb_str_aset): should raise error if an indexing string
is not found in the receiver. * sprintf.c (rb_f_sprintf): "%d" should convert objects into integers using Integer(). * lib/tempfile.rb (Tempfile::size): added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/extconf.rb')
-rw-r--r--ext/socket/extconf.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb
index c28840894..11639c0b0 100644
--- a/ext/socket/extconf.rb
+++ b/ext/socket/extconf.rb
@@ -62,7 +62,7 @@ else
end
$ipv6 = false
-if enable_config("ipv6", false)
+if enable_config("ipv6", true)
if try_link(<<EOF)
#include <sys/types.h>
#include <sys/socket.h>
@@ -226,7 +226,7 @@ have_struct_member('struct msghdr', 'msg_control', header=['sys/types.h', 'sys/s
have_struct_member('struct msghdr', 'msg_accrights', header=['sys/types.h', 'sys/socket.h'])
$getaddr_info_ok = false
-if not enable_config("wide-getaddrinfo", false) and try_run(<<EOF)
+if !enable_config("wide-getaddrinfo", false) and try_run(<<EOF)
#include <sys/types.h>
#include <netdb.h>
#include <string.h>
@@ -322,6 +322,7 @@ if $ipv6 and not $getaddr_info_ok
Fatal: --enable-ipv6 is specified, and your OS seems to support IPv6 feature.
But your getaddrinfo() and getnameinfo() are appeared to be broken. Sorry,
you cannot compile IPv6 socket classes with broken these functions.
+You can try --enable-wide-getaddrinfo.
EOS
exit
end