summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-10-20 18:45:30 +0000
committerMike Frysinger <vapier@gentoo.org>2005-10-20 18:45:30 +0000
commit113d55143e81bc8f69b6995284f86d49efc4cfa1 (patch)
treed9d8d95cbbedfcec88f8d3dfd4191b54d5aa5e99
parent286547d5c293e2aff4fcbebe7e72e2f8f95f0962 (diff)
only include libc-tsd.h if we have threads support
-rw-r--r--libc/inet/rpc/rpc_thread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/inet/rpc/rpc_thread.c b/libc/inet/rpc/rpc_thread.c
index 75a5d0f4d..8e3fca506 100644
--- a/libc/inet/rpc/rpc_thread.c
+++ b/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 =