nuttx-apps/interpreters/python/patch/0009-include-nuttx-sys-select-header-to-define-FD_SETSIZE.patch
Tiago Medicci efc1bf710c interpreters/python: Add Python's port to NuttX
This is the NuttX's port of Python (cpython)!

Initial support of Python includes building the Python's static
library and the `python` (Programs/python.c) application. Python's
modules are stored in `pyc` (byte-code file) and loaded as needed
from flash.
2024-12-06 19:42:09 -03:00

28 lines
705 B
Diff

From 9a32a300c95e0061220d2608a014c7fa39dedab3 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/10] include nuttx sys/select header to define FD_SETSIZE
---
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.46.1