zephyr: remove posix prefix on standard time.h header

Instead of using `#include <posix/time.h>`, just use `#include <time.h>`.

Required-by zephyrproject-rtos/zephyr#43998

Signed-off-by: Christopher Friedt <chrisfriedt@gmail.com>
This commit is contained in:
Christopher Friedt 2022-03-20 17:50:36 -04:00 committed by Carles Cufí
parent 2a5891d874
commit 92a7958fcb
2 changed files with 3 additions and 2 deletions

View File

@ -50,7 +50,7 @@ extern "C" {
#include <ti/drivers/dpl/ClockP.h>
#if defined(SL_PLATFORM_MULTI_THREADED)
/* Use Zephyr posix headers */
#include <posix/time.h>
#include <time.h>
#include <posix/pthread.h>
#include <posix/semaphore.h>
#include <posix/unistd.h>

View File

@ -196,7 +196,8 @@ interface. Some are mandatory, others are optional (but recommended).
* Can remove this if support for CONFIG_NET_SOCKETS_POSIX_NAMES
* is dropped someday
*/
#ifndef CONFIG_NET_SOCKETS_POSIX_NAMES
#if defined(CONFIG_NET_SOCKETS_POSIX_NAMES) || defined(CONFIG_POSIX_CLOCK) \
|| defined(CONFIG_POSIX_API)
#include <sys/time.h>
#endif