mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
glibc: guard inet-fortified.h
This commit is contained in:
parent
bc567312bf
commit
1f0cf7c551
1 changed files with 3 additions and 0 deletions
3
lib/libc/include/generic-glibc/arpa/inet.h
vendored
3
lib/libc/include/generic-glibc/arpa/inet.h
vendored
|
|
@ -101,10 +101,13 @@ extern char *inet_nsap_ntoa (int __len, const unsigned char *__cp,
|
||||||
char *__buf) __THROW;
|
char *__buf) __THROW;
|
||||||
#endif
|
#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
|
#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function
|
||||||
/* Include functions with security checks. */
|
/* Include functions with security checks. */
|
||||||
# include <bits/inet-fortified.h>
|
# include <bits/inet-fortified.h>
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue