Jelajahi Sumber

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 14 tahun lalu
induk
melakukan
989500b616
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  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>