svn commit: trunk/uClibc/test: signal
vapier at uclibc.org
vapier at uclibc.org
Wed Feb 22 01:51:36 UTC 2006
Author: vapier
Date: 2006-02-21 17:51:34 -0800 (Tue, 21 Feb 2006)
New Revision: 14174
Log:
update MMU ifdef check
Modified:
trunk/uClibc/test/signal/sigchld.c
trunk/uClibc/test/test-skeleton.c
Changeset:
Modified: trunk/uClibc/test/signal/sigchld.c
===================================================================
--- trunk/uClibc/test/signal/sigchld.c 2006-02-22 01:19:59 UTC (rev 14173)
+++ trunk/uClibc/test/signal/sigchld.c 2006-02-22 01:51:34 UTC (rev 14174)
@@ -14,7 +14,7 @@
}
-#ifdef __UCLIBC_HAS_MMU__
+#ifdef __ARCH_USE_MMU__
int main(void)
{
Modified: trunk/uClibc/test/test-skeleton.c
===================================================================
--- trunk/uClibc/test/test-skeleton.c 2006-02-22 01:19:59 UTC (rev 14173)
+++ trunk/uClibc/test/test-skeleton.c 2006-02-22 01:51:34 UTC (rev 14174)
@@ -31,6 +31,7 @@
#include <sys/wait.h>
#include <sys/param.h>
#include <time.h>
+#include <features.h>
/* The test function is normally called `do_test' and it is called
with argc and argv as the arguments. We nevertheless provide the
@@ -287,7 +288,7 @@
- set up the timer
- fork and execute the function. */
-#ifdef __UCLIBC_HAS_MMU__
+#if defined __ARCH_USE_MMU__ || ! defined __UCLIBC__
pid = fork ();
if (pid == 0)
{
More information about the uClibc-cvs
mailing list