[PATCH 2/3] Add missing guards in include/arpa/inet.h

Florian Weimer fweimer@redhat.com
Tue Mar 18 12:00:00 GMT 2025


* Frédéric Bérat:

> Add the missing guards in the header, similarly to other headers at the
> same level
> ---
>  include/arpa/inet.h | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/include/arpa/inet.h b/include/arpa/inet.h
> index d1ea13bb19..f389c28cb2 100644
> --- a/include/arpa/inet.h
> +++ b/include/arpa/inet.h
> @@ -1,3 +1,5 @@
> +#ifndef _ARPA_INET_H
> +/* Note: _ARPA_INET_H is defined by inet/arpa/inet.h below */

Missing end of comment: below[. ] */

>  #include <inet/arpa/inet.h>
>  
>  #ifndef _ISOMAC
> @@ -17,3 +19,4 @@ libc_hidden_proto (inet_netof)
>  extern __typeof (inet_network) __inet_network;
>  libc_hidden_proto (__inet_network)
>  #endif
> +#endif

With the above fixed:

Reviewed-by: Florian Weimer <fweimer@redhat.com>

Thanks,
Florian



More information about the Libc-alpha mailing list