Blame cups-freebind.patch
|
|
f75ce25 |
diff -up cups-1.7b1/scheduler/listen.c.freebind cups-1.7b1/scheduler/listen.c
|
|
|
f75ce25 |
--- cups-1.7b1/scheduler/listen.c.freebind 2013-06-20 11:48:17.427352639 +0100
|
|
|
f75ce25 |
+++ cups-1.7b1/scheduler/listen.c 2013-06-20 11:51:15.023288361 +0100
|
|
|
f75ce25 |
@@ -198,6 +198,10 @@ cupsdStartListening(void)
|
|
|
f75ce25 |
setsockopt(lis->fd, SOL_SOCKET, SO_REUSEADDR, &val, sizeof(val));
|
|
|
f75ce25 |
#endif /* __sun */
|
|
|
f75ce25 |
|
|
|
f75ce25 |
+#ifdef __linux
|
|
|
f75ce25 |
+ setsockopt(lis->fd, IPPROTO_IP, IP_FREEBIND, &val, sizeof(val));
|
|
|
f75ce25 |
+#endif /* __linux */
|
|
|
f75ce25 |
+
|
|
|
f75ce25 |
/*
|
|
|
f75ce25 |
* Bind to the port we found...
|
|
|
f75ce25 |
*/
|