summaryrefslogtreecommitdiff
path: root/libc/inet/getaddrinfo.c
diff options
context:
space:
mode:
authorAustin Foxley <austinf@cetoncorp.com>2009-11-30 12:11:40 -0800
committerAustin Foxley <austinf@cetoncorp.com>2009-11-30 12:11:40 -0800
commit989500b616ca4cd3838184198ac90643fdb7f528 (patch)
tree7e7a3d2df8551a4bf727abb087bf4e96a61f9773 /libc/inet/getaddrinfo.c
parentc4d3237740d254390a7fecdd14410c7d80510642 (diff)
getaddrinfo.c: include tls.h before resolv.h
This is needed because tls.h ends up includeing nptl/descr.h which needs the full res_state definition. resolv.h also ends up including tls.h, but _without_ the full res_state struct it errors. Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libc/inet/getaddrinfo.c')
-rw-r--r--libc/inet/getaddrinfo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/inet/getaddrinfo.c b/libc/inet/getaddrinfo.c
index 4a42b9eb6..8c7f7b9f1 100644
--- a/libc/inet/getaddrinfo.c
+++ b/libc/inet/getaddrinfo.c
@@ -56,6 +56,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <assert.h>
#include <errno.h>
#include <netdb.h>
+#include <tls.h>
#include <resolv.h>
#include <stdio.h>
#include <stdlib.h>