Replace __uClinux__ define with !BB_MMU
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 21 Feb 2010 04:17:41 +0000 (05:17 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 21 Feb 2010 04:17:41 +0000 (05:17 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
procps/free.c
shell/ash.c

index b1385910310c5a7da26c9690afea5ce656f5a474..e8bea50642897add644c31d5ff950eebf633838f 100644 (file)
@@ -27,7 +27,7 @@ int free_main(int argc UNUSED_PARAM, char **argv)
                /* TODO:  Make all this stuff not overflow when mem >= 4 Gib */
                info.totalram/=info.mem_unit;
                info.freeram/=info.mem_unit;
-#ifndef __uClinux__
+#if BB_MMU
                info.totalswap/=info.mem_unit;
                info.freeswap/=info.mem_unit;
 #endif
@@ -38,7 +38,7 @@ int free_main(int argc UNUSED_PARAM, char **argv)
                /* TODO:  Make all this stuff not overflow when mem >= 4 Gib */
                info.totalram*=info.mem_unit;
                info.freeram*=info.mem_unit;
-#ifndef __uClinux__
+#if BB_MMU
                info.totalswap*=info.mem_unit;
                info.freeswap*=info.mem_unit;
 #endif
@@ -56,7 +56,7 @@ int free_main(int argc UNUSED_PARAM, char **argv)
                        info.totalram-info.freeram, info.freeram,
                        info.sharedram, info.bufferram);
 
-#ifndef __uClinux__
+#if BB_MMU
        printf("%6s%13ld%13ld%13ld\n", "Swap:", info.totalswap,
                        info.totalswap-info.freeswap, info.freeswap);
 
index 7f14bedb54910bc0cd6e14a0e818352250b1b200..03904bbf8eea432e7aab308703a0ae5380e42ce3 100644 (file)
@@ -73,7 +73,7 @@
 # define PIPE_BUF 4096           /* amount of buffering in a pipe */
 #endif
 
-#if defined(__uClinux__)
+#if !BB_MMU
 # error "Do not even bother, ash will not run on NOMMU machine"
 #endif