add more convenient defines for [NO]MMU:

"#ifndef BB_NOMMU" is a double negative
This commit is contained in:
Denis Vlasenko
2007-04-11 07:04:23 +00:00
parent f1a7141cfc
commit 473dae080a
6 changed files with 30 additions and 27 deletions

View File

@ -220,7 +220,7 @@ int zcip_main(int argc, char **argv)
}
}
// On NOMMU reexec early (or else we will rerun things twice)
#ifdef BB_NOMMU
#if !BB_MMU
if (!FOREGROUND)
bb_daemonize_or_rexec(DAEMON_CHDIR_ROOT, argv);
#endif
@ -268,7 +268,7 @@ int zcip_main(int argc, char **argv)
// daemonize now; don't delay system startup
if (!FOREGROUND) {
#ifndef BB_NOMMU
#if BB_MMU
bb_daemonize(DAEMON_CHDIR_ROOT);
#endif
bb_info_msg("start, interface %s", intf);