summaryrefslogtreecommitdiff
path: root/ext/socket
diff options
context:
space:
mode:
Diffstat (limited to 'ext/socket')
-rw-r--r--ext/socket/extconf.rb2
-rw-r--r--ext/socket/socket.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb
index f719723864..bbda95cf83 100644
--- a/ext/socket/extconf.rb
+++ b/ext/socket/extconf.rb
@@ -4,7 +4,7 @@ when /mswin32/
test_func = "WSACleanup"
have_library("wsock32", "WSACleanup")
when /cygwin32/
- test_func = "cygwin32_socket"
+ test_func = "socket"
else
test_func = "socket"
have_library("socket", "socket")
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index 1b87ae9146..d45db8b818 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -1137,7 +1137,7 @@ static VALUE
sock_s_socketpair(class, domain, type, protocol)
VALUE class, domain, type, protocol;
{
-#if !defined(__CYGWIN32__) && !defined(NT)
+#if !defined(NT)
int fd;
int d, t, sp[2];