Only define mux_pt_snd_pipe() and mux_pt_rcv_pipe() if splicing is
available.
return (cs->conn->xprt->snd_buf(cs->conn, buf, flags));
}
+#if defined(CONFIG_HAP_LINUX_SPLICE)
/* Send and get, using splicing */
static int mux_pt_rcv_pipe(struct conn_stream *cs, struct pipe *pipe, unsigned int count)
{
{
return (cs->conn->xprt->snd_pipe(cs->conn, pipe));
}
+#endif
/* The mux operations */
const struct mux_ops mux_pt_ops = {