support: Simplify compiling most of support/ outside of glibc
authorFlorian Weimer <fweimer@redhat.com>
Thu, 14 Dec 2017 12:48:56 +0000 (13:48 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 14 Dec 2017 12:48:56 +0000 (13:48 +0100)
Some include files were missing because they are implied by the
in-tree build process.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
12 files changed:
ChangeLog
support/check_addrinfo.c
support/check_dns_packet.c
support/check_hostent.c
support/check_netent.c
support/support_can_chroot.c
support/support_format_addrinfo.c
support/support_format_dns_packet.c
support/support_format_hostent.c
support/support_format_netent.c
support/support_write_file_string.c
support/xdlfcn.c

index 51f6c0e4c53e7251325fa162c6357a23555f9f80..49fcee95dbf8d0d907cff9d843156a33b2a3a531 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2017-12-14  Florian Weimer  <fweimer@redhat.com>
+
+       Simplify compiling most of support/ outside of glibc.
+       * support/check_addrinfo.c: Include <string.h>.
+       * support/check_dns_packet.c: Likewise.
+       * support/check_hostent.c: Likewise.
+       * support/support_can_chroot.c: Include <support/xunistd.h>.
+       * support/support_format_addrinfo.c: Include <stdlib.h>
+       * support/support_format_dns_packet.c: Include <stdbool.h>.
+       * support/support_format_hostent.c: Include <stdlib.h>.
+       * support/support_format_netent.c: Likewise.
+       * support/support_write_string.c: Include <support/xunistd.h>.
+       * support/xdlfcn.c: Include <stddef.h>.
+
 2017-12-14  H.J. Lu  <hongjiu.lu@intel.com>
 
        * sysdeps/x86_64/fpu/s_cosf.S: Removed.
index 55895ace3c7f83681d3b041fb28b1765d6cd8fcd..c47f105ce65d6b38f57b227955f79260329d7e38 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <support/check.h>
 #include <support/format_nss.h>
 #include <support/run_diff.h>
index d2a31bed7b4bc3d760a12226589574390bde0222..6d14bd90c045f0890fdc66d9e40dc23b912ef6a8 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <support/check.h>
 #include <support/format_nss.h>
 #include <support/run_diff.h>
index 890d672d501af9e28c9ed3120013ed230bde1260..47fb8bc3326cc1065243ede02e30a8bfc40ad189 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <support/check.h>
 #include <support/format_nss.h>
 #include <support/run_diff.h>
index daa3083fd108724ee0bc3924eadb6e5428827d27..80b69309b450bccdceb380f58c53b3edd799fc71 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <support/check.h>
 #include <support/format_nss.h>
 #include <support/run_diff.h>
index 0dfd2deb543176e2e4725f7c65558c7a2dd60941..a462753f765eceb6a81d05640f8174c0f27dc9c1 100644 (file)
@@ -21,9 +21,9 @@
 #include <support/check.h>
 #include <support/namespace.h>
 #include <support/support.h>
+#include <support/xunistd.h>
 #include <sys/stat.h>
 #include <unistd.h>
-#include <xunistd.h>
 
 static void
 callback (void *closure)
index eedb0305911a46afbe5183fc7f82e83987e2fb2a..daf335f775276f7a201d3ab89b18caff7361e77e 100644 (file)
@@ -21,6 +21,7 @@
 #include <arpa/inet.h>
 #include <errno.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <support/support.h>
 #include <support/xmemstream.h>
 
index 2992c579717e19da3ce24055b6d5de131c10e3c0..e5ef1aa4b35de509c96ff46fc1dbd22750b16da5 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <arpa/inet.h>
 #include <resolv.h>
+#include <stdbool.h>
 #include <support/check.h>
 #include <support/support.h>
 #include <support/xmemstream.h>
index 88c85ec1f1f31e450528f5644d49cdfa43c9b027..0aac17972b4e4db8260a4c26a661ecfc7a0fceba 100644 (file)
@@ -21,6 +21,7 @@
 #include <arpa/inet.h>
 #include <errno.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <support/support.h>
 #include <support/xmemstream.h>
 
index 020f5720d92b052dc649a9e80e5e2622be7170b4..be8f1720a2c98d92a9722fec605b0b29def03a70 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <arpa/inet.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <support/support.h>
 #include <support/xmemstream.h>
 
index 48e89597f39f8aefaaa440213d236220360161e7..48736530bfb8f8d44489c178359aa217dc422408 100644 (file)
@@ -19,7 +19,7 @@
 #include <fcntl.h>
 #include <string.h>
 #include <support/check.h>
-#include <xunistd.h>
+#include <support/xunistd.h>
 
 void
 support_write_file_string (const char *path, const char *contents)
index 6e3979983d8cf3cd38a18e9cc1beda9bdf0bd99b..05966c41ef06efc79b733dfd203adba50a7e5748 100644 (file)
@@ -16,6 +16,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stddef.h>
 #include <support/check.h>
 #include <support/xdlfcn.h>