This is an automated email from the ASF dual-hosted git repository.
xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new a3b67d70e06 sched/signal: fix link error with SIG_PREALLOC_ACTIONS=0
a3b67d70e06 is described below
commit a3b67d70e066eb186bdb227476e534806d59f4f9
Author: raiden00pl <[email protected]>
AuthorDate: Mon Nov 16 09:52:55 2026 +0100
sched/signal: fix link error with SIG_PREALLOC_ACTIONS=0
With CONFIG_ENABLE_ALL_SIGNALS=y and CONFIG_SIG_PREALLOC_ACTIONS=0 the
build fails at link time:
undefined reference to `g_sigfreeaction'
undefined reference to `g_sigpendingaction'
undefined reference to `g_sigpendingirqaction'
The definitions of these lists were guarded by
CONFIG_SIG_PREALLOC_ACTIONS > 0, but they are used whenever full signal
support is enabled. Only the g_sigactions pre-allocated pool depends on
SIG_PREALLOC_ACTIONS.
Signed-off-by: raiden00pl <[email protected]>
---
sched/signal/sig_initialize.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sched/signal/sig_initialize.c b/sched/signal/sig_initialize.c
index 4582df1ecc3..255164976ba 100644
--- a/sched/signal/sig_initialize.c
+++ b/sched/signal/sig_initialize.c
@@ -57,6 +57,9 @@ struct sigpool_s
#if defined(CONFIG_ENABLE_ALL_SIGNALS) && CONFIG_SIG_PREALLOC_ACTIONS > 0
sigactq_t g_sigactions[CONFIG_SIG_PREALLOC_ACTIONS];
+#endif
+
+#ifdef CONFIG_ENABLE_ALL_SIGNALS
/* The g_sigfreeaction data structure is a list of available signal
* action structures.