forked from wolfSSL/wolfssl
Zephyr: fix POSIX time include
The sys/time.h header causes redefinition errors regarding the fd_set type and the select call inside socket_select.h. We want to include the regular time.h header anyway, as done in random.c. Signed-off-by: Tobias Frauenschläger <t.frauenschlaeger@me.com> tmp
This commit is contained in:
committed by
Juliusz Sosinowicz
parent
9d880fe161
commit
4d8bbd7091
@@ -982,7 +982,7 @@ WOLFSSL_ABI WOLFSSL_API int wolfCrypt_Cleanup(void);
|
|||||||
#ifndef _POSIX_C_SOURCE
|
#ifndef _POSIX_C_SOURCE
|
||||||
#include <zephyr/posix/time.h>
|
#include <zephyr/posix/time.h>
|
||||||
#else
|
#else
|
||||||
#include <sys/time.h>
|
#include <time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
time_t z_time(time_t *timer);
|
time_t z_time(time_t *timer);
|
||||||
|
Reference in New Issue
Block a user