]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - posix/tst-getaddrinfo2.c
posix: New function posix_spawn_file_actions_addfchdir_np [BZ #17405]
[thirdparty/glibc.git] / posix / tst-getaddrinfo2.c
index b0bce5925ced7bfc339fa3cc96eb941c3240fb53..d8be4a8e8f27b36c9e4d085d6700ac1bc7aa81f7 100644 (file)
@@ -2,6 +2,9 @@
 #include <errno.h>
 #include <netdb.h>
 #include <unistd.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <sys/socket.h>
 
 static int
@@ -47,7 +50,7 @@ do_test (void)
       if (err)
         {
           printf ("FAIL getaddrinfo IPv4 socktype 0,513: "
-                  "fam %d alen %d addr 0x%08X addr/fam %d "
+                  "fam %d alen %d addr %p addr/fam %d "
                   "addr/port %d H[%d]\n",
                   pai->ai_family, pai->ai_addrlen, psin,
                   psin ? psin->sin_family : 0,