Annotation of /trunk/cups/patches/cups-1.5.2-dnssd-build.patch
Parent Directory | Revision Log
Revision 1642 -
(hide annotations)
(download)
Thu Feb 16 08:44:18 2012 UTC (12 years, 7 months ago) by niro
File size: 1688 byte(s)
Thu Feb 16 08:44:18 2012 UTC (12 years, 7 months ago) by niro
File size: 1688 byte(s)
-added redhat/fedora avahi patches
1 | niro | 1642 | diff -up cups-1.5b1/Makedefs.in.build cups-1.5b1/Makedefs.in |
2 | --- cups-1.5b1/Makedefs.in.build 2011-05-04 06:28:00.000000000 +0200 | ||
3 | +++ cups-1.5b1/Makedefs.in 2011-05-24 15:54:03.000000000 +0200 | ||
4 | @@ -138,7 +138,7 @@ BACKLIBS = @BACKLIBS@ | ||
5 | BANNERTOPS = @BANNERTOPS@ | ||
6 | BUILDDIRS = @BUILDDIRS@ | ||
7 | CFLAGS = @CPPFLAGS@ @CFLAGS@ | ||
8 | -COMMONLIBS = @LIBS@ | ||
9 | +COMMONLIBS = @LIBS@ $(DNSSDLIBS) | ||
10 | CXXFLAGS = @CPPFLAGS@ @CXXFLAGS@ | ||
11 | CXXLIBS = @CXXLIBS@ | ||
12 | DBUS_NOTIFIER = @DBUS_NOTIFIER@ | ||
13 | diff -up cups-1.5b1/scheduler/dirsvc.c.build cups-1.5b1/scheduler/dirsvc.c | ||
14 | --- cups-1.5b1/scheduler/dirsvc.c.build 2011-05-20 05:49:49.000000000 +0200 | ||
15 | +++ cups-1.5b1/scheduler/dirsvc.c 2011-05-24 15:55:26.000000000 +0200 | ||
16 | @@ -2047,7 +2047,7 @@ cupsdUpdateDNSSDName(void) | ||
17 | |||
18 | WebIFRef = DNSSDRef; | ||
19 | if ((error = DNSServiceRegister(&WebIFRef, | ||
20 | - kDNSServiceFlagsShareConnection, | ||
21 | + 0, | ||
22 | 0, webif, "_http._tcp", NULL, | ||
23 | NULL, htons(DNSSDPort), 7, | ||
24 | "\006path=/", dnssdRegisterCallback, | ||
25 | @@ -2769,7 +2769,7 @@ dnssdRegisterPrinter(cupsd_printer_t *p) | ||
26 | do | ||
27 | { | ||
28 | p->ipp_ref = DNSSDRef; | ||
29 | - if ((se = DNSServiceRegister(&p->ipp_ref, kDNSServiceFlagsShareConnection, | ||
30 | + if ((se = DNSServiceRegister(&p->ipp_ref, 0, | ||
31 | 0, name, regtype, NULL, NULL, | ||
32 | htons(DNSSDPort), ipp_len, ipp_txt, | ||
33 | dnssdRegisterCallback, | ||
34 | @@ -2866,7 +2866,7 @@ dnssdRegisterPrinter(cupsd_printer_t *p) | ||
35 | |||
36 | p->printer_ref = DNSSDRef; | ||
37 | if ((se = DNSServiceRegister(&p->printer_ref, | ||
38 | - kDNSServiceFlagsShareConnection, | ||
39 | + 0, | ||
40 | 0, name, "_printer._tcp", NULL, NULL, | ||
41 | htons(printer_port), printer_len, printer_txt, | ||
42 | dnssdRegisterCallback, |