disamiguate include guards for arpa_inet and sys_time

This commit is contained in:
auronandace
2026-05-08 07:54:05 +01:00
parent f35df25195
commit c75c13da91
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -11,10 +11,10 @@
# - including netinet/in.h in arpa/inet.h
# - splitting out functions (htonl, htons, ntohl, ntohs) into bits/arpainet.h
#
# netinet/in.h brings in sys/types.h which brings in features.h (needed for #[deprecated] annotation)
# features.h needed for #[deprecated] annotation
# bits/arpainet.h brings in inttypes.h
sys_includes = ["netinet/in.h"]
include_guard = "_ARPA_INET_H"
sys_includes = ["features.h", "netinet/in.h"]
include_guard = "_RELIBC_ARPA_INET_H"
after_includes = """
#include <bits/arpainet.h> // for htonl, htons, ntohl, ntohs
#include <bits/socklen-t.h> // for socklen_t
+3 -3
View File
@@ -1,6 +1,6 @@
# sys/types.h brings in features.h (needed for #[deprecated] annotations)
sys_includes = ["sys/types.h", "sys/select.h"]
include_guard = "_SYS_TIME_H"
# features.h needed for #[deprecated] annotations
sys_includes = ["features.h", "sys/types.h", "sys/select.h"]
include_guard = "_RELIBC_SYS_TIME_H"
language = "C"
after_includes = """
#include <bits/timespec.h> // for timespec