2011-05-24 12:27:29 +00:00
|
|
|
diff -up cups-1.5b1/Makedefs.in.build cups-1.5b1/Makedefs.in
|
|
|
|
--- cups-1.5b1/Makedefs.in.build 2011-05-04 06:28:00.000000000 +0200
|
|
|
|
+++ cups-1.5b1/Makedefs.in 2011-05-24 15:54:03.000000000 +0200
|
|
|
|
@@ -138,7 +138,7 @@ BACKLIBS = @BACKLIBS@
|
2008-12-16 12:31:53 +00:00
|
|
|
BANNERTOPS = @BANNERTOPS@
|
2011-05-24 12:27:29 +00:00
|
|
|
BUILDDIRS = @BUILDDIRS@
|
2008-11-12 16:16:44 +00:00
|
|
|
CFLAGS = @CPPFLAGS@ @CFLAGS@
|
|
|
|
-COMMONLIBS = @LIBS@
|
|
|
|
+COMMONLIBS = @LIBS@ $(DNSSDLIBS)
|
|
|
|
CXXFLAGS = @CPPFLAGS@ @CXXFLAGS@
|
|
|
|
CXXLIBS = @CXXLIBS@
|
2011-05-24 12:27:29 +00:00
|
|
|
DBUS_NOTIFIER = @DBUS_NOTIFIER@
|
|
|
|
diff -up cups-1.5b1/scheduler/dirsvc.c.build cups-1.5b1/scheduler/dirsvc.c
|
|
|
|
--- cups-1.5b1/scheduler/dirsvc.c.build 2011-05-20 05:49:49.000000000 +0200
|
|
|
|
+++ cups-1.5b1/scheduler/dirsvc.c 2011-05-24 15:55:26.000000000 +0200
|
|
|
|
@@ -2047,7 +2047,7 @@ cupsdUpdateDNSSDName(void)
|
2008-11-12 16:16:44 +00:00
|
|
|
|
|
|
|
WebIFRef = DNSSDRef;
|
|
|
|
if ((error = DNSServiceRegister(&WebIFRef,
|
|
|
|
- kDNSServiceFlagsShareConnection,
|
|
|
|
+ 0,
|
|
|
|
0, webif, "_http._tcp", NULL,
|
|
|
|
NULL, htons(DNSSDPort), 7,
|
|
|
|
"\006path=/", dnssdRegisterCallback,
|
2011-05-24 12:27:29 +00:00
|
|
|
@@ -2769,7 +2769,7 @@ dnssdRegisterPrinter(cupsd_printer_t *p)
|
2008-11-12 16:16:44 +00:00
|
|
|
do
|
|
|
|
{
|
|
|
|
p->ipp_ref = DNSSDRef;
|
|
|
|
- if ((se = DNSServiceRegister(&p->ipp_ref, kDNSServiceFlagsShareConnection,
|
|
|
|
+ if ((se = DNSServiceRegister(&p->ipp_ref, 0,
|
2009-06-17 11:30:03 +00:00
|
|
|
0, name, regtype, NULL, NULL,
|
2008-11-12 16:16:44 +00:00
|
|
|
htons(DNSSDPort), ipp_len, ipp_txt,
|
|
|
|
dnssdRegisterCallback,
|
2011-05-24 12:27:29 +00:00
|
|
|
@@ -2866,7 +2866,7 @@ dnssdRegisterPrinter(cupsd_printer_t *p)
|
2008-11-12 16:16:44 +00:00
|
|
|
|
2011-05-24 12:27:29 +00:00
|
|
|
p->printer_ref = DNSSDRef;
|
|
|
|
if ((se = DNSServiceRegister(&p->printer_ref,
|
|
|
|
- kDNSServiceFlagsShareConnection,
|
|
|
|
+ 0,
|
|
|
|
0, name, "_printer._tcp", NULL, NULL,
|
|
|
|
htons(printer_port), printer_len, printer_txt,
|
|
|
|
dnssdRegisterCallback,
|