From: Thibault Godouet Date: Fri, 12 Sep 2003 20:53:34 +0000 (+0000) Subject: bug fix : always include getloadavg.h X-Git-Tag: ver2_9_4~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=808a154788fe87e78905cb71aeff998e741ac7f4;p=thirdparty%2Ffcron.git bug fix : always include getloadavg.h --- diff --git a/database.c b/database.c index ae8f239..adca7e5 100644 --- a/database.c +++ b/database.c @@ -21,12 +21,13 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: database.c,v 1.68 2003-07-14 10:52:44 thib Exp $ */ + /* $Id: database.c,v 1.69 2003-09-12 20:55:18 thib Exp $ */ #include "fcron.h" #include "database.h" #include "job.h" +#include "getloadavg.h" int is_leap_year(int year); int get_nb_mdays(int year, int mon); diff --git a/fcron.h b/fcron.h index 8e57c21..4e78c5b 100644 --- a/fcron.h +++ b/fcron.h @@ -21,7 +21,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: fcron.h,v 1.29 2002-10-28 17:53:21 thib Exp $ */ + /* $Id: fcron.h,v 1.30 2003-09-12 20:54:53 thib Exp $ */ #ifndef __FCRON_H__ #define __FCRON_H__ @@ -58,10 +58,6 @@ #include #endif -#ifndef HAVE_GETLOADAVG -#include "getloadavg.h" -#endif - /* global variables */ extern time_t now; extern char debug_opt; diff --git a/fcrondyn.c b/fcrondyn.c index 361bb64..69532dd 100644 --- a/fcrondyn.c +++ b/fcrondyn.c @@ -22,7 +22,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: fcrondyn.c,v 1.8 2002-10-28 17:50:24 thib Exp $ */ + /* $Id: fcrondyn.c,v 1.9 2003-09-12 20:53:34 thib Exp $ */ /* fcrondyn : interact dynamically with running fcron process : * - list jobs, with their status, next time of execution, etc @@ -34,8 +34,9 @@ #include "fcrondyn.h" #include "allow.h" #include "read_string.h" +#include "getloadavg.h" -char rcs_info[] = "$Id: fcrondyn.c,v 1.8 2002-10-28 17:50:24 thib Exp $"; +char rcs_info[] = "$Id: fcrondyn.c,v 1.9 2003-09-12 20:53:34 thib Exp $"; void info(void); void usage(void);