From 92a7958fcb1c707f343daad1146639c77c267bd9 Mon Sep 17 00:00:00 2001 From: Christopher Friedt Date: Sun, 20 Mar 2022 17:50:36 -0400 Subject: [PATCH] zephyr: remove posix prefix on standard time.h header Instead of using `#include `, just use `#include `. Required-by zephyrproject-rtos/zephyr#43998 Signed-off-by: Christopher Friedt --- simplelink/source/ti/drivers/net/wifi/porting/cc_pal.h | 2 +- simplelink/source/ti/net/slnetsock.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/simplelink/source/ti/drivers/net/wifi/porting/cc_pal.h b/simplelink/source/ti/drivers/net/wifi/porting/cc_pal.h index b273898..a45a614 100644 --- a/simplelink/source/ti/drivers/net/wifi/porting/cc_pal.h +++ b/simplelink/source/ti/drivers/net/wifi/porting/cc_pal.h @@ -50,7 +50,7 @@ extern "C" { #include #if defined(SL_PLATFORM_MULTI_THREADED) /* Use Zephyr posix headers */ -#include +#include #include #include #include diff --git a/simplelink/source/ti/net/slnetsock.h b/simplelink/source/ti/net/slnetsock.h index 5c79916..1fe4c62 100644 --- a/simplelink/source/ti/net/slnetsock.h +++ b/simplelink/source/ti/net/slnetsock.h @@ -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 #endif