From b9c86f337dfaffcfc70ccf47e28cd2252eb974e6 Mon Sep 17 00:00:00 2001 From: Gleb Popov <6yearold@gmail.com> Date: Wed, 15 Mar 2023 17:59:24 +0300 Subject: [PATCH] Add IPTOS_DSCP definition for !Linux platforms. --- src/modules/module-rtp-sink.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/module-rtp-sink.c b/src/modules/module-rtp-sink.c index ab3d40d93..ccf733094 100644 --- a/src/modules/module-rtp-sink.c +++ b/src/modules/module-rtp-sink.c @@ -27,6 +27,11 @@ #include +#ifndef IPTOS_DSCP +#define IPTOS_DSCP_MASK 0xfc +#define IPTOS_DSCP(x) ((x) & IPTOS_DSCP_MASK) +#endif + /** \page page_module_rtp_sink PipeWire Module: RTP sink * * The `rtp-sink` module creates a PipeWire sink that sends audio