1 /*
2  * Copyright (c) 2019 Linaro Limited
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_SYS__TIMEVAL_H_
8 #define ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_SYS__TIMEVAL_H_
9 
10 #include <sys/_types.h>
11 
12 #if !defined(__time_t_defined)
13 #define __time_t_defined
14 typedef _TIME_T_ time_t;
15 #endif
16 
17 #if !defined(__suseconds_t_defined)
18 #define __suseconds_t_defined
19 typedef _SUSECONDS_T_ suseconds_t;
20 #endif
21 
22 struct timeval {
23 	time_t tv_sec;
24 	suseconds_t tv_usec;
25 };
26 
27 #endif /* ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_SYS__TIMEVAL_H_ */
28