2007-01-16 00:35:31 +01:00
|
|
|
Index: ext/socket/extconf.rb
|
|
|
|
===================================================================
|
|
|
|
--- ext/socket/extconf.rb.orig
|
|
|
|
+++ ext/socket/extconf.rb
|
2007-08-06 18:21:32 +02:00
|
|
|
@@ -43,6 +43,7 @@ if enable_config("ipv6", default_ipv6)
|
2007-01-16 00:35:31 +01:00
|
|
|
if checking_for("ipv6") {try_link(<<EOF)}
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/socket.h>
|
|
|
|
+int
|
|
|
|
main()
|
|
|
|
{
|
|
|
|
socket(AF_INET6, SOCK_STREAM, 0);
|
2007-08-06 18:21:32 +02:00
|
|
|
@@ -135,6 +136,7 @@ getaddr_info_ok = enable_config("wide-ge
|
2007-01-16 00:35:31 +01:00
|
|
|
#define AF_LOCAL AF_UNIX
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+int
|
|
|
|
main()
|
|
|
|
{
|
|
|
|
int passive, gaierr, inet4 = 0, inet6 = 0;
|