Skip to content

Commit ea366ec

Browse files
keith-packardcarlescufi
authored andcommitted
posix: Need sys/types.h to get suseconds_t defined
Picolibc's sys/_timeval.h (which Zephyr shouldn't be using) needs sys/types.h to be included first so that __suseconds_t is defined. Signed-off-by: Keith Packard <[email protected]>
1 parent 8d176ea commit ea366ec

File tree

1 file changed

+1
-0
lines changed
  • include/zephyr/posix/sys

1 file changed

+1
-0
lines changed

include/zephyr/posix/sys/time.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ struct timeval {
2222
#endif
2323

2424
#else
25+
#include <sys/types.h>
2526
#include <sys/_timeval.h>
2627
#endif /* CONFIG_NEWLIB_LIBC */
2728

0 commit comments

Comments
 (0)