diff options
Diffstat (limited to 'newlib/libc/include/sys/_timeval.h')
-rw-r--r-- | newlib/libc/include/sys/_timeval.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/include/sys/_timeval.h b/newlib/libc/include/sys/_timeval.h index d813d1f5b..676a0b894 100644 --- a/newlib/libc/include/sys/_timeval.h +++ b/newlib/libc/include/sys/_timeval.h @@ -36,9 +36,10 @@ typedef __suseconds_t suseconds_t; #define _SUSECONDS_T_DECLARED #endif -#ifndef __time_t_defined +#if !defined(__time_t_defined) && !defined(_TIME_T_DECLARED) typedef _TIME_T_ time_t; #define __time_t_defined +#define _TIME_T_DECLARED #endif /* This define is also used outside of Newlib, e.g. in MinGW-w64 */ |