summaryrefslogtreecommitdiff
path: root/libpthread/nptl/pthread_create.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2011-10-27 12:38:43 +0200
committerCarmelo Amoroso <carmelo.amoroso@st.com>2011-10-27 12:41:26 +0200
commiteb7d589d072d63b72cd48052ed6c5b010cca9769 (patch)
tree1e6f212c3b8eccc9a64e8a9a116fe02042718107 /libpthread/nptl/pthread_create.c
parent24a3d3860538b16684591bf86621332c18494806 (diff)
pthreads: fix build when DNS resolver is not enabled.
Resolver state is only available if DNS resolver is enabled. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'libpthread/nptl/pthread_create.c')
-rw-r--r--libpthread/nptl/pthread_create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpthread/nptl/pthread_create.c b/libpthread/nptl/pthread_create.c
index 86ff1488b..1b2c6825f 100644
--- a/libpthread/nptl/pthread_create.c
+++ b/libpthread/nptl/pthread_create.c
@@ -233,7 +233,7 @@ start_thread (void *arg)
HP_TIMING_NOW (now);
THREAD_SETMEM (pd, cpuclock_offset, now);
#endif
-#if defined __UCLIBC_HAS_IPV4__ || defined __UCLIBC_HAS_IPV6__
+#if defined __UCLIBC_HAS_RESOLVER_SUPPORT__
/* Initialize resolver state pointer. */
__resp = &pd->res;
#endif