summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/sys/timeb.h
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include/sys/timeb.h')
-rw-r--r--newlib/libc/include/sys/timeb.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/newlib/libc/include/sys/timeb.h b/newlib/libc/include/sys/timeb.h
index 264783050..793b48143 100644
--- a/newlib/libc/include/sys/timeb.h
+++ b/newlib/libc/include/sys/timeb.h
@@ -17,9 +17,10 @@ extern "C" {
#include <_ansi.h>
#include <sys/_types.h>
-#ifndef __time_t_defined
-typedef _TIME_T_ time_t;
-#define __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
struct timeb