aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-04-11 07:04:23 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-04-11 07:04:23 +0000
commit473dae080a8a0089d5d619a56d8943d131aa451e (patch)
tree29763aae84d2c9336d9f34a5dc02c024285af60e /networking
parentf1a7141cfcacf606ae321faa58c45617045460fe (diff)
downloadbusybox-w32-473dae080a8a0089d5d619a56d8943d131aa451e.tar.gz
busybox-w32-473dae080a8a0089d5d619a56d8943d131aa451e.tar.bz2
busybox-w32-473dae080a8a0089d5d619a56d8943d131aa451e.zip
add more convenient defines for [NO]MMU:
"#ifndef BB_NOMMU" is a double negative
Diffstat (limited to 'networking')
-rw-r--r--networking/httpd.c2
-rw-r--r--networking/zcip.c4
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,
986 * since httpd is run from inetd (and it can't run standalone 986 * since httpd is run from inetd (and it can't run standalone
987 * in uClinux). 987 * in uClinux).
988 */ 988 */
989#ifdef BB_NOMMU 989#if !BB_MMU
990 pid = vfork(); 990 pid = vfork();
991#else 991#else
992 pid = fork(); 992 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)
220 } 220 }
221 } 221 }
222 // On NOMMU reexec early (or else we will rerun things twice) 222 // On NOMMU reexec early (or else we will rerun things twice)
223#ifdef BB_NOMMU 223#if !BB_MMU
224 if (!FOREGROUND) 224 if (!FOREGROUND)
225 bb_daemonize_or_rexec(DAEMON_CHDIR_ROOT, argv); 225 bb_daemonize_or_rexec(DAEMON_CHDIR_ROOT, argv);
226#endif 226#endif
@@ -268,7 +268,7 @@ int zcip_main(int argc, char **argv)
268 268
269 // daemonize now; don't delay system startup 269 // daemonize now; don't delay system startup
270 if (!FOREGROUND) { 270 if (!FOREGROUND) {
271#ifndef BB_NOMMU 271#if BB_MMU
272 bb_daemonize(DAEMON_CHDIR_ROOT); 272 bb_daemonize(DAEMON_CHDIR_ROOT);
273#endif 273#endif
274 bb_info_msg("start, interface %s", intf); 274 bb_info_msg("start, interface %s", intf);