mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
protocol-pulse: ifdef Linux-specific errnos and socket opts
This commit is contained in:
parent
bd57c1a457
commit
fba8cd9f56
2 changed files with 8 additions and 0 deletions
|
|
@ -4264,9 +4264,11 @@ on_connect(void *data, int fd, uint32_t mask)
|
|||
|
||||
if (server->type == SERVER_TYPE_UNIX) {
|
||||
val = 6;
|
||||
#ifdef SO_PRIORITY
|
||||
if (setsockopt(client_fd, SOL_SOCKET, SO_PRIORITY,
|
||||
(const void *) &val, sizeof(val)) < 0)
|
||||
pw_log_warn("SO_PRIORITY failed: %m");
|
||||
#endif
|
||||
} else if (server->type == SERVER_TYPE_INET) {
|
||||
val = 1;
|
||||
if (setsockopt(client_fd, IPPROTO_TCP, TCP_NODELAY,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue