Skip to content

Commit

Permalink
libc: minimal: Define time_t and suseconds_t
Browse files Browse the repository at this point in the history
According to POSIX, these types should be defined by sys/types.h.

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
  • Loading branch information
pfalcon authored and nashif committed May 8, 2019
1 parent d7ee114 commit d79d3eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/libc/minimal/include/sys/types.h
Expand Up @@ -40,4 +40,7 @@ typedef int off_t;


#endif #endif


typedef long long time_t;
typedef long suseconds_t;

#endif /* ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_SYS_TYPES_H_ */ #endif /* ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_SYS_TYPES_H_ */

0 comments on commit d79d3eb

Please sign in to comment.