]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix builds without on-demand support.
authorMichael R Sweet <msweet@msweet.org>
Fri, 14 Jun 2024 19:16:02 +0000 (15:16 -0400)
committerMichael R Sweet <msweet@msweet.org>
Fri, 14 Jun 2024 19:16:02 +0000 (15:16 -0400)
scheduler/conf.c

index 34b30e56d14f62d46cad0c32be24c55525a3397c..fff79a5bc85785e894d50b6d7f604ff85f09b101 100644 (file)
@@ -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!