f8c202ec1c
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>
12 lines
291 B
Plaintext
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.
|