From 442edcc1d281a62a0092bcde19038ba3c976e499 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Wed, 26 Apr 2023 13:35:21 -0600 Subject: [PATCH 1/3] define sys_nerr --- gcc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc-2.7.2.3/gcc.c b/gcc-2.7.2.3/gcc.c index fe7de5b..1ac933f 100644 --- a/gcc-2.7.2.3/gcc.c +++ b/gcc-2.7.2.3/gcc.c @@ -176,6 +176,7 @@ extern int errno; #endif extern int sys_nerr; +int __attribute__((weak)) sys_nerr = 0; #ifndef HAVE_STRERROR #if defined(bsd4_4) extern const char *const sys_errlist[]; -- 2.38.4