浏览代码

Doh! missed a spot.
-Erik

Eric Andersen 23 年之前
父节点
当前提交
e83faee37d
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      libc/stdlib/atexit.c

+ 2 - 0
libc/stdlib/atexit.c

@@ -168,7 +168,9 @@ void __exit_handler(int status)
 #ifdef L_exit
 #ifdef L_exit
 extern void weak_function _stdio_term(void);
 extern void weak_function _stdio_term(void);
 void (*__exit_cleanup) (int) = 0;
 void (*__exit_cleanup) (int) = 0;
+#ifdef __UCLIBC_HAS_THREADS__
 pthread_mutex_t mylock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
 pthread_mutex_t mylock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
+#endif
 
 
 /*
 /*
  * Normal program termination
  * Normal program termination