Преглед на файлове

fix warning when building on non-mmu hosts

Mike Frysinger преди 19 години
родител
ревизия
15b87e6a3f
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      libpthread/linuxthreads.old/pthread.c

+ 2 - 0
libpthread/linuxthreads.old/pthread.c

@@ -363,8 +363,10 @@ static void pthread_initialize(void)
 {
   struct sigaction sa;
   sigset_t mask;
+#ifdef __ARCH_HAS_MMU__
   struct rlimit limit;
   rlim_t max_stack;
+#endif
 
   /* If already done (e.g. by a constructor called earlier!), bail out */
   if (__pthread_initial_thread_bos != NULL) return;