Parcourir la source

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>
Austin Foxley il y a 14 ans
Parent
commit
989500b616
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      libc/inet/getaddrinfo.c

+ 1 - 0
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>