t14_legacy_config/pkgs/simple-scalar/0002-define-sys_nerr.patch
2023-04-26 19:04:15 -06:00

25 lines
581 B
Diff

From 442edcc1d281a62a0092bcde19038ba3c976e499 Mon Sep 17 00:00:00 2001
From: Alejandro Soto <alejandro@34project.org>
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