diff mbox series

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

Message ID c6289a18adee9a1d64a260b265dccb190d1707e6.1723811552.git.fweimer@redhat.com
State New
Headers show
Series Various support subdirectory cleanups | expand

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>
>
diff mbox series

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>