]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix build issues when we don't have systemd or launchd.
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Tue, 30 Sep 2014 18:56:48 +0000 (18:56 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Tue, 30 Sep 2014 18:56:48 +0000 (18:56 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12178 a1ca3aef-8c08-0410-bb20-df032aa958be

scheduler/conf.c
scheduler/listen.c

index 305efb025f6a98d20cd06c5de4fc4532eef9e254..f1e10204b7076cb1fc4c701233f84dc134e6022f 100644 (file)
@@ -2974,7 +2974,9 @@ read_cupsd_conf(cups_file_t *fp)  /* I - File to read from */
 
         if (lis)
        {
+#if defined(HAVE_LAUNCHD) || defined(HAVE_SYSTEMD)
          if (!lis->on_demand)
+#endif /* HAVE_LAUNCHD || HAVE_SYSTEMD */
          {
            httpAddrString(&lis->address, temp, sizeof(temp));
            cupsdLogMessage(CUPSD_LOG_WARN,
index fb8786d0e1e47a30e8efb6580c11bb50be68d453..b55d918b01e9c5bf0e515f19ee81653bcf03d831 100644 (file)
@@ -43,7 +43,9 @@ cupsdDeleteAllListeners(void)
   for (lis = (cupsd_listener_t *)cupsArrayFirst(Listeners);
        lis;
        lis = (cupsd_listener_t *)cupsArrayNext(Listeners))
+#if defined(HAVE_LAUNCHD) || defined(HAVE_SYSTEMD)
     if (!lis->on_demand)
+#endif /* HAVE_LAUNCHD || HAVE_SYSTEMD */
     {
       cupsArrayRemove(Listeners, lis);
       free(lis);