From: msweet Date: Fri, 21 Mar 2014 18:18:56 +0000 (+0000) Subject: Fix compiled on Linux. X-Git-Tag: release-2.1.4~16^2~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d66577b2df04e67da58fd26c254e4cc436b8d00;p=thirdparty%2Fcups.git Fix compiled on Linux. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/branches/branch-1.7@11721 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/scheduler/main.c b/scheduler/main.c index 7fd89257f8..e4422d19a8 100644 --- a/scheduler/main.c +++ b/scheduler/main.c @@ -1,39 +1,16 @@ /* * "$Id$" * - * Main loop for the CUPS scheduler. + * Main loop for the CUPS scheduler. * - * Copyright 2007-2012 by Apple Inc. - * Copyright 1997-2007 by Easy Software Products, all rights reserved. + * Copyright 2007-2014 by Apple Inc. + * Copyright 1997-2007 by Easy Software Products, all rights reserved. * - * These coded instructions, statements, and computer programs are the - * property of Apple Inc. and are protected by Federal copyright - * law. Distribution and use rights are outlined in the file "LICENSE.txt" - * "LICENSE" which should have been included with this file. If this - * file is missing or damaged, see the license at "http://www.cups.org/". - * - * Contents: - * - * main() - Main entry for the CUPS scheduler. - * cupsdAddString() - Copy and add a string to an array. - * cupsdCheckProcess() - Tell the main loop to check for dead children. - * cupsdClearString() - Clear a string. - * cupsdFreeStrings() - Free an array of strings. - * cupsdHoldSignals() - Hold child and termination signals. - * cupsdReleaseSignals() - Release signals for delivery. - * cupsdSetString() - Set a string value. - * cupsdSetStringf() - Set a formatted string value. - * launchd_checkin() - Check-in with launchd and collect the listening - * fds. - * launchd_checkout() - Update the launchd KeepAlive file as needed. - * parent_handler() - Catch USR1/CHLD signals... - * process_children() - Process all dead children... - * select_timeout() - Calculate the select timeout value. - * sigchld_handler() - Handle 'child' signals from old processes. - * sighup_handler() - Handle 'hangup' signals to reconfigure the - * scheduler. - * sigterm_handler() - Handle 'terminate' signals that stop the scheduler. - * usage() - Show scheduler usage. + * These coded instructions, statements, and computer programs are the + * property of Apple Inc. and are protected by Federal copyright + * law. Distribution and use rights are outlined in the file "LICENSE.txt" + * "LICENSE" which should have been included with this file. If this + * file is missing or damaged, see the license at "http://www.cups.org/". */ /* @@ -70,6 +47,10 @@ # include #endif /* HAVE_NOTIFY_H */ +#ifdef HAVE_DBUS +# include +#endif /* HAVE_DBUS */ + #ifdef HAVE_SYS_PARAM_H # include #endif /* HAVE_SYS_PARAM_H */ @@ -511,7 +492,7 @@ main(int argc, /* I - Number of command-line args */ * Enable threading support for D-BUS... */ - dbus_threads_init(); + dbus_threads_init_default(); #endif /* HAVE_DBUS_THREADS_INIT */ /*