From b9a7ca98b2e154ec2e3a7490f9838e1fddd72f52 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 31 Mar 2016 21:48:06 -0700 Subject: Wrap #if HAVE_SOCKETS around some functions. * stream.c (delegate_get_sock_family, delegate_get_sock_type, delegate_get_sock_peer, delegate_set_sock_peer): These functions should only be defined if HAVE_SOCKETS is true. --- stream.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'stream.c') diff --git a/stream.c b/stream.c index 415991a8..0815aa5d 100644 --- a/stream.c +++ b/stream.c @@ -2273,6 +2273,8 @@ static val delegate_get_fd(val stream) return s->target_ops->get_fd(s->target_stream); } +#if HAVE_SOCKETS + static val delegate_get_sock_family(val stream) { struct delegate_base *s = coerce(struct delegate_base *, stream->co.handle); @@ -2297,6 +2299,8 @@ static val delegate_set_sock_peer(val stream, val peer) return s->target_ops->set_sock_peer(s->target_stream, peer); } +#endif + static val make_delegate_stream(val orig_stream, size_t handle_size, struct cobj_ops *ops) { -- cgit v1.2.3