summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-12-26 17:13:27 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-12-26 17:13:27 +0000
commit504583342c47cd89d728272acd00052b6bd7ced6 (patch)
tree8717b630bcc75f199d1b530d5c98f256237c47d8 /util.c
parentc4db748a4634cf60131b636e6865487cdcc8877e (diff)
downloadperl-504583342c47cd89d728272acd00052b6bd7ced6.tar.gz
No AF_UNIX in BeOS.
p4raw-id: //depot/perl@13887
Diffstat (limited to 'util.c')
-rw-r--r--util.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/util.c b/util.c
index eaf169aa46..409b1b7d37 100644
--- a/util.c
+++ b/util.c
@@ -4135,7 +4135,11 @@ Perl_my_socketpair (int family, int type, int protocol, int fd[2]) {
struct sockaddr_in connect_addr;
Sock_size_t size;
- if (protocol || family != AF_UNIX) {
+ if (protocol
+#ifdef AF_UNIX
+ || family != AF_UNIX
+#endif
+ ) {
errno = EAFNOSUPPORT;
return -1;
}