소스 검색

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;