Commit 6260d2772f

Kyle Schwarz <zeranoe@gmail.com>
2025-08-31 00:26:14
glibc: guard inet-fortified.h
1 parent bdca0f9
Changed files (1)
lib
libc
include
generic-glibc
arpa
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 <bits/inet-fortified.h>
 #endif
+#endif
 
 __END_DECLS