From: msweet Date: Tue, 30 Sep 2014 18:56:48 +0000 (+0000) Subject: Fix build issues when we don't have systemd or launchd. X-Git-Tag: v2.2b1~471 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91f22d1157ffa9f157c5df0d92473612d4ece4dc;p=thirdparty%2Fcups.git Fix build issues when we don't have systemd or launchd. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12178 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/scheduler/conf.c b/scheduler/conf.c index 305efb025f..f1e10204b7 100644 --- a/scheduler/conf.c +++ b/scheduler/conf.c @@ -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, diff --git a/scheduler/listen.c b/scheduler/listen.c index fb8786d0e1..b55d918b01 100644 --- a/scheduler/listen.c +++ b/scheduler/listen.c @@ -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);