From 1f0cf7c5514587471a219c418c15b49413d0fd14 Mon Sep 17 00:00:00 2001 From: Kyle Schwarz Date: Sat, 30 Aug 2025 18:26:14 -0400 Subject: [PATCH] glibc: guard inet-fortified.h --- lib/libc/include/generic-glibc/arpa/inet.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/libc/include/generic-glibc/arpa/inet.h b/lib/libc/include/generic-glibc/arpa/inet.h index 84602130a9..07113deb0f 100644 --- a/lib/libc/include/generic-glibc/arpa/inet.h +++ b/lib/libc/include/generic-glibc/arpa/inet.h @@ -101,10 +101,13 @@ extern char *inet_nsap_ntoa (int __len, const unsigned char *__cp, char *__buf) __THROW; #endif +// zig patch: inet was fortified in glibc 2.42 +#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 42) || __GLIBC__ > 2 #if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function /* Include functions with security checks. */ # include #endif +#endif __END_DECLS