diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-11 11:04:23 +0400 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-11 11:04:23 +0400 |
commit | 473dae080a8a0089d5d619a56d8943d131aa451e (patch) | |
tree | 29763aae84d2c9336d9f34a5dc02c024285af60e /networking | |
parent | f1a7141cfcacf606ae321faa58c45617045460fe (diff) |
add more convenient defines for [NO]MMU:
"#ifndef BB_NOMMU" is a double negative
Diffstat (limited to 'networking')
-rw-r--r-- | networking/httpd.c | 2 | ||||
-rw-r--r-- | networking/zcip.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index 7ee62c32a..d80df937a 100644 --- a/networking/httpd.c +++ b/networking/httpd.c @@ -986,7 +986,7 @@ static int sendCgi(const char *url, * since httpd is run from inetd (and it can't run standalone * in uClinux). */ -#ifdef BB_NOMMU +#if !BB_MMU pid = vfork(); #else pid = fork(); diff --git a/networking/zcip.c b/networking/zcip.c index 552833f9f..eb3c869ab 100644 --- a/networking/zcip.c +++ b/networking/zcip.c @@ -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); |