From 7dcbff2d5994bc48dc3aa2a6af619dadf91d88db Mon Sep 17 00:00:00 2001 From: Vincent Wan Date: Fri, 24 Apr 2020 11:59:28 -0700 Subject: [PATCH] simplelink: drivers: wifi: include proper posix/time.h from Zephyr Remove hacks that were introduced when it was not possible to include this header earlier, and directly include the header from Zephyr. This would allow new changes (such as the recent change to modify clock_gettime() into a syscall) to be reflected in the HAL. Signed-off-by: Vincent Wan --- .../source/ti/drivers/net/wifi/porting/cc_pal.h | 16 +--------------- 1 file changed, 1 insertion(+), 15 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 9afc8e0..b273898 100644 --- a/simplelink/source/ti/drivers/net/wifi/porting/cc_pal.h +++ b/simplelink/source/ti/drivers/net/wifi/porting/cc_pal.h @@ -50,21 +50,7 @@ extern "C" { #include #if defined(SL_PLATFORM_MULTI_THREADED) /* Use Zephyr posix headers */ - -/* - * Hacks to prevent redefining symbols in posix headers. Currently it is not - * possible to include both socket.h and some posix headers without build - * errors (issue #13444). So we are disabling some headers, and defining - * only what is necessary. We should remove these when the POSIX integration - * story has improved. - */ -#define ZEPHYR_INCLUDE_POSIX_TIME_H_ -#define ZEPHYR_INCLUDE_POSIX_UNISTD_H_ -#define ZEPHYR_INCLUDE_POSIX_SYS_STAT_H_ -#include -extern int clock_gettime(clockid_t clock_id, struct timespec *ts); -extern int usleep(useconds_t useconds); - +#include #include #include #include