Преглед на файлове

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 години
родител
ревизия
989500b616
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  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>