]> git.ipfire.org Git - thirdparty/fcron.git/commitdiff
updated for use of autoconf
authorThibault Godouet <yo8192@users.noreply.github.com>
Thu, 14 Sep 2000 19:01:42 +0000 (19:01 +0000)
committerThibault Godouet <yo8192@users.noreply.github.com>
Thu, 14 Sep 2000 19:01:42 +0000 (19:01 +0000)
fileconf.c

index eaeb4d0bf55f264db64fe492ba4b96952cd3cb15..84725178086e891e422671104c26d4aca37336ad 100644 (file)
@@ -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);
        }