浏览代码

only include libc-tsd.h if we have threads support

Mike Frysinger 20 年之前
父节点
当前提交
113d55143e
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      libc/inet/rpc/rpc_thread.c

+ 2 - 1
libc/inet/rpc/rpc_thread.c

@@ -2,11 +2,12 @@
 #include <features.h>
 #include <stdio.h>
 #include <assert.h>
-#include <bits/libc-tsd.h>
 #include "rpc_private.h"
 
 #ifdef __UCLIBC_HAS_THREADS__
 
+#include <bits/libc-tsd.h>
+
 /* Variable used in non-threaded applications or for the first thread.  */
 static struct rpc_thread_variables __libc_tsd_RPC_VARS_mem;
 static struct rpc_thread_variables *__libc_tsd_RPC_VARS_data =