summaryrefslogtreecommitdiff
path: root/ext/socket
diff options
context:
space:
mode:
Diffstat (limited to 'ext/socket')
-rw-r--r--ext/socket/unixsocket.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ext/socket/unixsocket.c b/ext/socket/unixsocket.c
index 7039a8219b..a09f2b927e 100644
--- a/ext/socket/unixsocket.c
+++ b/ext/socket/unixsocket.c
@@ -75,9 +75,7 @@ init_unixsock(VALUE sock, VALUE path, int server)
return sock;
}
-#endif
-#ifdef HAVE_SYS_UN_H
/*
* call-seq:
* UNIXSocket.new(path) => unixsocket
@@ -441,9 +439,7 @@ unix_peeraddr(VALUE sock)
rb_sys_fail("getpeername(2)");
return unixaddr(&addr, len);
}
-#endif
-#ifdef HAVE_SYS_UN_H
/*
* call-seq:
* UNIXSocket.pair([type [, protocol]]) => [unixsocket1, unixsocket2]