summaryrefslogtreecommitdiffstats
path: root/newlib/libc/sys/sparc64
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/sparc64')
-rw-r--r--newlib/libc/sys/sparc64/sys/_timeval.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/newlib/libc/sys/sparc64/sys/_timeval.h b/newlib/libc/sys/sparc64/sys/_timeval.h
index fbe9ce64d..b0aaeda7e 100644
--- a/newlib/libc/sys/sparc64/sys/_timeval.h
+++ b/newlib/libc/sys/sparc64/sys/_timeval.h
@@ -3,9 +3,10 @@
#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
#ifdef __cplusplus