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:
parent
2a5891d874
commit
92a7958fcb
|
@ -50,7 +50,7 @@ extern "C" {
|
||||||
#include <ti/drivers/dpl/ClockP.h>
|
#include <ti/drivers/dpl/ClockP.h>
|
||||||
#if defined(SL_PLATFORM_MULTI_THREADED)
|
#if defined(SL_PLATFORM_MULTI_THREADED)
|
||||||
/* Use Zephyr posix headers */
|
/* Use Zephyr posix headers */
|
||||||
#include <posix/time.h>
|
#include <time.h>
|
||||||
#include <posix/pthread.h>
|
#include <posix/pthread.h>
|
||||||
#include <posix/semaphore.h>
|
#include <posix/semaphore.h>
|
||||||
#include <posix/unistd.h>
|
#include <posix/unistd.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
|
* Can remove this if support for CONFIG_NET_SOCKETS_POSIX_NAMES
|
||||||
* is dropped someday
|
* 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>
|
#include <sys/time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue