nuttx-apps/interpreters/python/patch/0001-workaround-newlib-resource.h-limitations.patch
Tiago Medicci d7ed69200f interpreters/python: Avoid warnings that could be treated as errors
This commit disables some warnings when building CPython to avoid
CI failing when `EXTRAFLAGS="-Wno-cpp -Werror"` is set.
2024-12-12 02:12:25 +08:00

32 lines
956 B
Diff

From 3917fd37644948096c6bebf53e701b59fa527cf5 Mon Sep 17 00:00:00 2001
From: Ivan Grokhotkov <ivan@espressif.com>
Date: Tue, 22 Oct 2024 23:58:17 +0200
Subject: [PATCH 01/11] workaround newlib resource.h limitations
configure script checks if resource.h is available but doesn't check
if it defines all the necessary functions.
Temporary workaround until these functions are added to IDF.
Signed-off-by: Tiago Medicci <tiago.medicci@espressif.com>
---
Modules/faulthandler.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Modules/faulthandler.c b/Modules/faulthandler.c
index b62362f2777..327d883f94e 100644
--- a/Modules/faulthandler.c
+++ b/Modules/faulthandler.c
@@ -968,7 +968,7 @@ faulthandler_suppress_crash_report(void)
SetErrorMode(mode | SEM_NOGPFAULTERRORBOX);
#endif
-#ifdef HAVE_SYS_RESOURCE_H
+#if 0 && defined(HAVE_SYS_RESOURCE_H)
struct rlimit rl;
/* Disable creation of core dump */
--
2.46.1