zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 6260d2772ffbf11b02e13cb93e49c58b1b3b73f2 (tree)
parent bdca0f93c4b9527acba9a956e767be63b073280e
Author: Kyle Schwarz <zeranoe@gmail.com>
Date:   Sat, 30 Aug 2025 18:26:14 -0400

glibc: guard inet-fortified.h

Diffstat:
Mlib/libc/include/generic-glibc/arpa/inet.h | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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 <bits/inet-fortified.h> #endif +#endif __END_DECLS