summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/sys/_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include/sys/_types.h')
-rw-r--r--newlib/libc/include/sys/_types.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/newlib/libc/include/sys/_types.h b/newlib/libc/include/sys/_types.h
index d27979c9d..72e1dc17a 100644
--- a/newlib/libc/include/sys/_types.h
+++ b/newlib/libc/include/sys/_types.h
@@ -186,7 +186,11 @@ typedef void *_iconv_t;
typedef _CLOCK_T_ __clock_t;
-#define _TIME_T_ long /* time() */
+#if defined(_USE_LONG_TIME_T) || __LONG_MAX__ > 0x7fffffffL
+#define _TIME_T_ long
+#else
+#define _TIME_T_ __int_least64_t
+#endif
typedef _TIME_T_ __time_t;
#define _CLOCKID_T_ unsigned long