From: Michael R Sweet Date: Fri, 14 Jun 2024 19:16:02 +0000 (-0400) Subject: Fix builds without on-demand support. X-Git-Tag: v2.4.10~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4417cd366f7baf64f4ada3efbb3ec13cd773a0f4;p=thirdparty%2Fcups.git Fix builds without on-demand support. --- diff --git a/scheduler/conf.c b/scheduler/conf.c index 34b30e56d1..fff79a5bc8 100644 --- a/scheduler/conf.c +++ b/scheduler/conf.c @@ -1048,7 +1048,11 @@ cupsdReadConfiguration(void) * as an error and exit! */ +#ifdef HAVE_ONDEMAND if (cupsArrayCount(Listeners) == 0 && !OnDemand) +#else + if (cupsArrayCount(Listeners) == 0) +#endif // HAVE_ONDEMAND { /* * No listeners!