From 473dae080a8a0089d5d619a56d8943d131aa451e Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 11 Apr 2007 07:04:23 +0000 Subject: add more convenient defines for [NO]MMU: "#ifndef BB_NOMMU" is a double negative --- networking/httpd.c | 2 +- networking/zcip.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'networking') diff --git a/networking/httpd.c b/networking/httpd.c index 7ee62c3..d80df93 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 552833f..eb3c869 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); -- cgit v1.1