21 lines
437 B
Diff
21 lines
437 B
Diff
|
Index: ext/socket/extconf.rb
|
||
|
===================================================================
|
||
|
--- ext/socket/extconf.rb.orig
|
||
|
+++ ext/socket/extconf.rb
|
||
|
@@ -36,6 +36,7 @@
|
||
|
if checking_for("ipv6") {try_link(<<EOF)}
|
||
|
#include <sys/types.h>
|
||
|
#include <sys/socket.h>
|
||
|
+int
|
||
|
main()
|
||
|
{
|
||
|
socket(AF_INET6, SOCK_STREAM, 0);
|
||
|
@@ -157,6 +158,7 @@
|
||
|
#define AF_LOCAL AF_UNIX
|
||
|
#endif
|
||
|
|
||
|
+int
|
||
|
main()
|
||
|
{
|
||
|
int passive, gaierr, inet4 = 0, inet6 = 0;
|