diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-03-31 21:48:06 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-03-31 21:48:06 -0700 |
commit | b9a7ca98b2e154ec2e3a7490f9838e1fddd72f52 (patch) | |
tree | 1b61cb85e05d4ac5ea8fc9b53b71d7cc55ee5c40 | |
parent | c2c6c3c8c66855d9ccbe079015355ae8db8ff5e5 (diff) | |
download | txr-b9a7ca98b2e154ec2e3a7490f9838e1fddd72f52.tar.gz txr-b9a7ca98b2e154ec2e3a7490f9838e1fddd72f52.tar.bz2 txr-b9a7ca98b2e154ec2e3a7490f9838e1fddd72f52.zip |
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.
-rw-r--r-- | stream.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) { |