Header cleanup on two more networking files (move libbb.h to the top and
[oweals/busybox.git] / miscutils / crond.c
index 030e962f33b891730445670489a07aba7cf3784b..3f60468de48e251aff73226c152ec586de1d3732 100644 (file)
@@ -12,6 +12,7 @@
 
 #define VERSION "2.3.2"
 
+#include "busybox.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>
@@ -29,8 +30,6 @@
 #include <sys/stat.h>
 #include <sys/resource.h>
 
-#include "busybox.h"
-
 #define arysize(ary)    (sizeof(ary)/sizeof((ary)[0]))
 
 #ifndef CRONTABS
@@ -205,12 +204,12 @@ int crond_main(int ac, char **av)
         */
 
        if (!(opt & 4)) {
-#if defined(__uClinux__)
+#ifdef BB_NOMMU
                /* reexec for vfork() do continue parent */
                vfork_daemon_rexec(1, 0, ac, av, "-f");
-#else                                                  /* uClinux */
+#else
                bb_xdaemon(1, 0);
-#endif                                                 /* uClinux */
+#endif
        }
 
        (void) startlogger();   /* need if syslog mode selected */