Skip to content

Commit 4d8bbd7

Browse files
Frauschijulek-wolfssl
authored andcommitted
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
1 parent 9d880fe commit 4d8bbd7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfssl/wolfcrypt/wc_port.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ WOLFSSL_ABI WOLFSSL_API int wolfCrypt_Cleanup(void);
982982
#ifndef _POSIX_C_SOURCE
983983
#include <zephyr/posix/time.h>
984984
#else
985-
#include <sys/time.h>
985+
#include <time.h>
986986
#endif
987987

988988
time_t z_time(time_t *timer);

0 commit comments

Comments
 (0)