mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-28 22:31:06 +01:00
MINOR: mux: Only define pipe functions on linux.
Only define mux_pt_snd_pipe() and mux_pt_rcv_pipe() if splicing is available.
This commit is contained in:
parent
82913e4f79
commit
7da120bb0e
@ -170,6 +170,7 @@ static int mux_pt_snd_buf(struct conn_stream *cs, struct buffer *buf, int flags)
|
|||||||
return (cs->conn->xprt->snd_buf(cs->conn, buf, flags));
|
return (cs->conn->xprt->snd_buf(cs->conn, buf, flags));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(CONFIG_HAP_LINUX_SPLICE)
|
||||||
/* Send and get, using splicing */
|
/* Send and get, using splicing */
|
||||||
static int mux_pt_rcv_pipe(struct conn_stream *cs, struct pipe *pipe, unsigned int count)
|
static int mux_pt_rcv_pipe(struct conn_stream *cs, struct pipe *pipe, unsigned int count)
|
||||||
{
|
{
|
||||||
@ -187,6 +188,7 @@ static int mux_pt_snd_pipe(struct conn_stream *cs, struct pipe *pipe)
|
|||||||
{
|
{
|
||||||
return (cs->conn->xprt->snd_pipe(cs->conn, pipe));
|
return (cs->conn->xprt->snd_pipe(cs->conn, pipe));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* The mux operations */
|
/* The mux operations */
|
||||||
const struct mux_ops mux_pt_ops = {
|
const struct mux_ops mux_pt_ops = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user