Files
nuttx-apps/interpreters/python/patch/0009-include-nuttx-sys-select-header-to-define-FD_SETSIZE.patch
Tiago Medicci c83e17c083 interpreters/python: Fix symbol collision with list_length function
NuttX implements a function with the same name which may end up
being included whenever `CONFIG_MM_KERNEL_HEAP` is set. To avoid
it, insert a prefix to it on Python's implementation.

Please note that the other patches had their metadata updated too.
2025-07-22 14:18:23 +08:00

29 lines
764 B
Diff

From 682b331c77974ef5f051b39f30f3a5af4f7789d1 Mon Sep 17 00:00:00 2001
From: Tiago Medicci <tiago.medicci@espressif.com>
Date: Thu, 14 Nov 2024 13:44:49 -0300
Subject: [PATCH 09/14] include nuttx sys/select header to define FD_SETSIZE
Signed-off-by: Tiago Medicci <tiago.medicci@espressif.com>
---
Modules/selectmodule.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
index 5bd9b7732a4..e9fab839122 100644
--- a/Modules/selectmodule.c
+++ b/Modules/selectmodule.c
@@ -63,6 +63,10 @@ extern void bzero(void *, int);
#include <sys/types.h>
#endif
+#ifdef HAVE_SYS_SELECT_H
+#include <sys/select.h>
+#endif
+
#ifdef MS_WINDOWS
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
--
2.50.0