Skip to content

Commit 6f4396e

Browse files
committed
posix: signal: fix POSIX_RTSIG_MAX validation
Only validate `POSIX_RTSIG_MAX` if `POSIX_REALTIME_SIGNALS` is enabled. Signed-off-by: Jordan Yates <[email protected]>
1 parent 8f439d6 commit 6f4396e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/posix/options/signal.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
#define SIGNO_WORD_IDX(_signo) (_signo / BITS_PER_LONG)
1515
#define SIGNO_WORD_BIT(_signo) (_signo & BIT_MASK(LOG2(BITS_PER_LONG)))
1616

17+
#ifdef CONFIG_POSIX_REALTIME_SIGNALS
1718
BUILD_ASSERT(CONFIG_POSIX_RTSIG_MAX >= 0);
19+
#endif
1820

1921
static inline bool signo_valid(int signo)
2022
{

0 commit comments

Comments
 (0)