Include resolv.h.
authordrepper <drepper>
Tue, 22 Jul 2003 23:04:00 +0000 (23:04 +0000)
committerdrepper <drepper>
Tue, 22 Jul 2003 23:04:00 +0000 (23:04 +0000)
(struct pthread): Add res field.

nptl/descr.h

index fb364b9..6c7f231 100644 (file)
@@ -35,7 +35,8 @@
 #ifdef HAVE_FORCED_UNWIND
 # include <unwind.h>
 #endif
-
+#define __need_res_state
+#include <resolv.h>
 
 #ifndef TCB_ALIGNMENT
 # define TCB_ALIGNMENT sizeof (double)
@@ -235,6 +236,9 @@ struct pthread
   size_t stackblock_size;
   /* Size of the included guard area.  */
   size_t guardsize;
+
+  /* Resolver state.  */
+  struct __res_state res;
 } __attribute ((aligned (TCB_ALIGNMENT)));