Explorar o código

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 %!s(int64=16) %!d(string=hai) anos
pai
achega
989500b616
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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>