<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;"> ------------------------------------------------------------------------
r14070 | vapier | 2006-02-15 23:36:19 -0600 (Wed, 15 Feb 2006) | 1 line
Changed paths:
   M /trunk/uClibc/test/test-skeleton.c

fix building on non-mmu hosts
 ------------------------------------------------------------------------
Index: test/test-skeleton.c
===================================================================
--- test/test-skeleton.c	(revision 14069)
+++ test/test-skeleton.c	(revision 14070)
@@ -193,17 +193,23 @@
 int
 main (int argc, char *argv[])
 {
+#ifdef __ARCH_HAS_MMU__
   int direct = 0;	/* Directly call the test function?  */
+#else
+  int direct = 1;
+#endif
   int status;
   int opt;
   unsigned int timeoutfactor = 1;
   pid_t termpid;
 
   /* Make uses of freed and uninitialized memory known.  */
+#ifdef __ARCH_HAS_MMU__
 #ifndef M_PERTURB
 # define M_PERTURB -6
 #endif
   mallopt (M_PERTURB, 42);
+#endif
 
 #ifdef STDOUT_UNBUFFERED
   setbuf (stdout, NULL);
@@ -281,6 +287,7 @@
      - set up the timer
      - fork and execute the function.  */
 
+#ifdef __UCLIBC_HAS_MMU__
   pid = fork ();
   if (pid == 0)
     {
@@ -318,6 +325,7 @@
       exit (TEST_FUNCTION);
     }
   else if (pid &lt; 0)
+#endif
     {
       perror ("Cannot fork test program");
       exit (1);
</pre></body></html>