* `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"
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);
}
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);
}
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);
}
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);
}