From: Michael R Sweet Date: Fri, 14 Jun 2024 19:16:11 +0000 (-0400) Subject: Fix builds without on-demand support. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=824f49f24d6babc2c02215ee6303fee7ce6a553a;p=thirdparty%2Fcups.git Fix builds without on-demand support. --- diff --git a/scheduler/conf.c b/scheduler/conf.c index c1644d324e..88593db3e6 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!