浏览代码

update MMU ifdef check

Mike Frysinger 20 年之前
父节点
当前提交
1bfe52d8ef
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 1 1
      test/signal/sigchld.c
  2. 2 1
      test/test-skeleton.c

+ 1 - 1
test/signal/sigchld.c

@@ -14,7 +14,7 @@ void test_handler(int signo)
 }
 }
 
 
 
 
-#ifdef __UCLIBC_HAS_MMU__
+#ifdef __ARCH_USE_MMU__
 
 
 int main(void) 
 int main(void) 
 {
 {

+ 2 - 1
test/test-skeleton.c

@@ -31,6 +31,7 @@
 #include <sys/wait.h>
 #include <sys/wait.h>
 #include <sys/param.h>
 #include <sys/param.h>
 #include <time.h>
 #include <time.h>
+#include <features.h>
 
 
 /* The test function is normally called `do_test' and it is called
 /* The test function is normally called `do_test' and it is called
    with argc and argv as the arguments.  We nevertheless provide the
    with argc and argv as the arguments.  We nevertheless provide the
@@ -287,7 +288,7 @@ main (int argc, char *argv[])
      - set up the timer
      - set up the timer
      - fork and execute the function.  */
      - fork and execute the function.  */
 
 
-#ifdef __UCLIBC_HAS_MMU__
+#if defined __ARCH_USE_MMU__ || ! defined __UCLIBC__
   pid = fork ();
   pid = fork ();
   if (pid == 0)
   if (pid == 0)
     {
     {