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 <keithp@keithp.com>
This commit is contained in:
Keith Packard 2024-09-12 15:09:39 -07:00 committed by Carles Cufí
parent 8d176ea97d
commit ea366ecc61
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ struct timeval {
#endif
#else
#include <sys/types.h>
#include <sys/_timeval.h>
#endif /* CONFIG_NEWLIB_LIBC */