From: Rich Felker Date: Sat, 10 Aug 2019 02:20:55 +0000 (-0400) Subject: prepare struct sched_param for change in time_t definition X-Git-Tag: v1.2.0~78 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2d69fcf5ef271c1f5fec45ee9337ec7280a5dae7;p=oweals%2Fmusl.git prepare struct sched_param for change in time_t definition the time_t members in struct sched_param are just reserved space to preserve size and alignment. when time_t changes to 64-bit on 32-bit archs, this structure should not change. make definition conditional on _REDIR_TIME64 to match the size of the old time_t, which can be assumed to be long if _REDIR_TIME64 is defined. --- diff --git a/include/sched.h b/include/sched.h index c3a8d49a..822f464e 100644 --- a/include/sched.h +++ b/include/sched.h @@ -19,10 +19,14 @@ extern "C" { struct sched_param { int sched_priority; int __reserved1; +#if _REDIR_TIME64 + long __reserved2[4]; +#else struct { time_t __reserved1; long __reserved2; } __reserved2[2]; +#endif int __reserved3; };