From: Thibault Godouet Date: Thu, 14 Sep 2000 19:01:42 +0000 (+0000) Subject: updated for use of autoconf X-Git-Tag: ver2_9_4~572 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8c25e2a76e9468f3fa8880c163912deb1809b14;p=thirdparty%2Ffcron.git updated for use of autoconf --- diff --git a/fileconf.c b/fileconf.c index eaeb4d0..8472517 100644 --- a/fileconf.c +++ b/fileconf.c @@ -22,7 +22,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: fileconf.c,v 1.16 2000-09-04 13:09:21 thib Exp $ */ + /* $Id: fileconf.c,v 1.17 2000-09-14 19:01:42 thib Exp $ */ #include "fcrontab.h" @@ -537,10 +537,10 @@ read_opt(char *ptr, CL *cl) Handle_err; cl->cl_lavg[2] = i; set_lavg(cl->cl_option); -#if PROC_LOADAVG == 0 +#ifdef NOLOADAVG warn("As fcron has been compiled with no procfs support,\n" "you will not be able to use the lavg* options"); -#endif /* PROC_LOADAVG = 0 */ +#endif /* NOLOADAVG */ if (debug_opt) fprintf(stderr, " Opt : 'lavg15' %d\n", i); } @@ -550,10 +550,10 @@ read_opt(char *ptr, CL *cl) Handle_err; cl->cl_lavg[0] = i; set_lavg(cl->cl_option); -#if PROC_LOADAVG == 0 +#if NOLOADAVG warn("As fcron has been compiled with no procfs support,\n" "you will not be able to use the lavg* options"); -#endif /* PROC_LOADAVG = 0 */ +#endif /* NOLOADAVG */ if (debug_opt) fprintf(stderr, " Opt : 'lavg1' %d\n", i); } @@ -563,10 +563,10 @@ read_opt(char *ptr, CL *cl) Handle_err; cl->cl_lavg[1] = i; set_lavg(cl->cl_option); -#if PROC_LOADAVG == 0 +#ifdef NOLOADAVG warn("As fcron has been compiled with no procfs support,\n" "you will not be able to use the lavg* options"); -#endif /* PROC_LOADAVG = 0 */ +#endif /* NOLOADAVG = 0 */ if (debug_opt) fprintf(stderr, " Opt : 'lavg5' %d\n", i); } @@ -576,10 +576,10 @@ read_opt(char *ptr, CL *cl) Handle_err; cl->cl_lavg[2] = i; set_lavg(cl->cl_option); -#if PROC_LOADAVG == 0 +#ifdef NOLOADAVG warn("As fcron has been compiled with no procfs support,\n" "you will not be able to use the lavg* options"); -#endif /* PROC_LOADAVG = 0 */ +#endif /* NOLOADAVG = 0 */ if (debug_opt) fprintf(stderr, " Opt : 'lavg15' %d\n", i); }