Skip to content
Commit 9a0b8e78 authored by Christopher Friedt's avatar Christopher Friedt Committed by Chris Friedt
Browse files

posix: sysconf: use Z_SC_VAL_IFDEF for sysconf constants



Previously, CONFIG_MAX_TIMER_COUNT and CONFIG_MSG_COUNT_MAX were
used without checking if CONFIG_TIMER and CONFIG_POSIX_MQUEUE
were enabled.

Use Z_SC_VAL_IFDEF() to conditionally define those constants
based on their gating Kconfig values, otherwise, they are defined
to -1.

Signed-off-by: default avatarChristopher Friedt <cfriedt@meta.com>
parent cd6674f7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment