authorgravatar for zeranoe@gmail.comKyle Schwarz <zeranoe@gmail.com> 2025-08-30 18:26:14-04:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-09-24 02:55:50+02:00
log6260d2772ffbf11b02e13cb93e49c58b1b3b73f2
tree08fdeb098dbf7543c13ee4544277d57b1eb5aea2
parentbdca0f93c4b9527acba9a956e767be63b073280e

glibc: guard inet-fortified.h


1 files changed, 3 insertions(+), 0 deletions(-)

  • folderlib
    • folderlibc
      • folderinclude
lib/libc/include/generic-glibc/arpa/inet.h+3
...@@ -101,10 +101,13 @@ extern char *inet_nsap_ntoa (int __len, const unsigned char *__cp,...@@ -101,10 +101,13 @@ extern char *inet_nsap_ntoa (int __len, const unsigned char *__cp,
101 char *__buf) __THROW;101 char *__buf) __THROW;
102#endif102#endif
103103
104// zig patch: inet was fortified in glibc 2.42
105#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 42) || __GLIBC__ > 2
104#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function106#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function
105/* Include functions with security checks. */107/* Include functions with security checks. */
106# include <bits/inet-fortified.h>108# include <bits/inet-fortified.h>
107#endif109#endif
110#endif
108111
109__END_DECLS112__END_DECLS
110113