From 824f49f24d6babc2c02215ee6303fee7ce6a553a Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 14 Jun 2024 15:16:11 -0400 Subject: [PATCH] Fix builds without on-demand support. --- scheduler/conf.c | 4 ++++ 1 file changed, 4 insertions(+) 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! -- 2.47.2