Ticket #4944: cups-1.7.2-fix-build-without-dnnsd.patch

File cups-1.7.2-fix-build-without-dnnsd.patch, 720 bytes (added by Miklos Karacsony, 10 years ago)

use --disable-avahi and --disable-dnssd switches with this patch and it will build without avahi.

  • scheduler/dirsvc.c

    diff -U 3 -H -d -r -N -- cups-1.7.2/scheduler/dirsvc.c cups-1.7.2.mod/scheduler/dirsvc.c
    old new  
    237237  if (BrowseLocalProtocols & BROWSE_SMB)
    238238    update_smb(1);
    239239
     240#  ifdef HAVE_DNSSD
    240241 /*
    241242  * Register the individual printers
    242243  */
    243244
    244245  dnssdRegisterAllPrinters(0);
     246#  endif /* HAVE_DNSSD */
    245247}
    246248
    247249
     
    255257  if (!Browsing || !BrowseLocalProtocols)
    256258    return;
    257259
    258  /*
     260 #  ifdef HAVE_DNSSD
     261/*
    259262  * De-register the individual printers
    260263  */
    261264
    262265  dnssdDeregisterAllPrinters(0);
     266#  endif /* HAVE_DNSSD */
    263267
    264268 /*
    265269  * Shut down browsing sockets...