[2/5] support: Include <string.h> for strcmp in support_format_addrinfo.c

Message ID c6289a18adee9a1d64a260b265dccb190d1707e6.1723811552.git.fweimer@redhat.com
State Committed
Commit 34bb581e7713589d38c797c214f4c6bf2b14b702
Headers
Series Various support subdirectory cleanups |

Checks

Context Check Description
redhat-pt-bot/TryBot-apply_patch success Patch applied to master at the time it was sent
linaro-tcwg-bot/tcwg_glibc_build--master-arm fail Patch failed to apply
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 fail Patch failed to apply

Commit Message

Florian Weimer Aug. 16, 2024, 12:34 p.m. UTC
  This is currently implied by the internal headers, but it makes
sense not to rely on this.
---
 support/support_format_addrinfo.c | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Adhemerval Zanella Netto Aug. 16, 2024, 12:45 p.m. UTC | #1
On 16/08/24 09:34, Florian Weimer wrote:
> This is currently implied by the internal headers, but it makes
> sense not to rely on this.

LGTM, thanks.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>


> ---
>  support/support_format_addrinfo.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/support/support_format_addrinfo.c b/support/support_format_addrinfo.c
> index cbc72910a9..77f4db345c 100644
> --- a/support/support_format_addrinfo.c
> +++ b/support/support_format_addrinfo.c
> @@ -22,6 +22,7 @@
>  #include <errno.h>
>  #include <stdio.h>
>  #include <stdlib.h>
> +#include <string.h>
>  #include <support/support.h>
>  #include <support/xmemstream.h>
>
  

Patch

diff --git a/support/support_format_addrinfo.c b/support/support_format_addrinfo.c
index cbc72910a9..77f4db345c 100644
--- a/support/support_format_addrinfo.c
+++ b/support/support_format_addrinfo.c
@@ -22,6 +22,7 @@ 
 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <support/support.h>
 #include <support/xmemstream.h>