diff options
author | FabioLolix | 2022-03-06 14:13:21 +0100 |
---|---|---|
committer | FabioLolix | 2022-03-06 14:13:21 +0100 |
commit | 12d9120006e9aa5b44cc84ce068f89b128100253 (patch) | |
tree | 5a7f0b2e81f401b017bad3e8768d7e7ad72f64fe /cups-freebind.patch | |
parent | cc5d59e34c37686ae4a0c61ef2830de82fa725ee (diff) | |
download | aur-cups-git.tar.gz |
use openprinting source, sync with Arch pkgbuild
Diffstat (limited to 'cups-freebind.patch')
-rw-r--r-- | cups-freebind.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cups-freebind.patch b/cups-freebind.patch new file mode 100644 index 000000000000..6d9ba430b5e4 --- /dev/null +++ b/cups-freebind.patch @@ -0,0 +1,15 @@ +diff -up cups-2.0.2/cups/http-addr.c.freebind cups-2.0.2/cups/http-addr.c +--- cups-2.0.2/cups/http-addr.c.freebind 2015-02-10 14:46:33.000000000 +0100 ++++ cups-2.0.2/cups/http-addr.c 2015-02-10 14:50:35.074759141 +0100 +@@ -186,6 +186,10 @@ httpAddrListen(http_addr_t *addr, /* I - + val = 1; + setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, CUPS_SOCAST &val, sizeof(val)); + ++#ifdef __linux ++ setsockopt(fd, IPPROTO_IP, IP_FREEBIND, CUPS_SOCAST &val, sizeof(val)); ++#endif /* __linux */ ++ + #ifdef IPV6_V6ONLY + if (addr->addr.sa_family == AF_INET6) + setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, CUPS_SOCAST &val, sizeof(val)); +diff -up cups-2.0.2/scheduler/listen.c.freebind cups-2.0.2/scheduler/listen.c |