From: Lawrence S. <ljs...@us...> - 2020-07-24 02:01:57
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "A pseudo Operating System for the Dreamcast.". The branch, master has been updated via d50dd457bbdde503bd4928ae61d5ce05ff41646f (commit) from 06bb113b77f338d529b929cb08c463ad459ff19a (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit d50dd457bbdde503bd4928ae61d5ce05ff41646f Author: Lawrence Sebald <ljs...@us...> Date: Thu Jul 23 22:01:10 2020 -0400 Make time_t 64-bits on Newlib 3.0 and newer. Newlib made the changeover in the 3.0.0 release, so make sure we match. ----------------------------------------------------------------------- Summary of changes: include/sys/_types.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/sys/_types.h b/include/sys/_types.h index 71d68ce..59593de 100644 --- a/include/sys/_types.h +++ b/include/sys/_types.h @@ -13,6 +13,7 @@ __BEGIN_DECLS #include <sys/lock.h> +#include <newlib.h> // This part copied from newlib's sys/_types.h. #ifndef __off_t_defined @@ -127,7 +128,11 @@ typedef unsigned short __nlink_t; typedef long __suseconds_t; /* microseconds (signed) */ typedef unsigned long __useconds_t; /* microseconds (unsigned) */ +#if __NEWLIB__ > 3 +#define _TIME_T long long +#else #define _TIME_T_ long +#endif typedef _TIME_T_ __time_t; #ifndef __clockid_t_defined hooks/post-receive -- A pseudo Operating System for the Dreamcast. |