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

Frédéric Bérat fberat@redhat.com
Wed Mar 19 09:10:01 GMT 2025


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..d9e55a3c7f 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.  */
 #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
-- 
2.48.1



More information about the Libc-alpha mailing list