zephyr/lib/posix/Kconfig.clock
Alberto Escolar Piedras f8c202ec1c lib/posix clock: Add missing kconfig dependency
POSIX clock cannot be used with the host libC
when building with the POSIX architecture.
Let's ensure it via kconfig.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-10-25 09:58:07 +02:00

12 lines
291 B
Plaintext

# Copyright (c) 2018 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
config POSIX_CLOCK
bool "POSIX clock, timer, and sleep APIs"
default y if POSIX_API
depends on !(ARCH_POSIX && EXTERNAL_LIBC)
help
This enables POSIX clock\_\*(), timer\_\*(), and \*sleep()
functions.