From f641474cb2dfdac86504479e9b4afe30833fc0b8 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 8 Feb 2018 13:02:41 +0100 Subject: [PATCH] RTEMS: Use int for _CLOCKID_T_ Linux and FreeBSD use int as well. In addition, this fixes an Ada incompatiblity problem on 64-bit targets. See also GCC: gcc/ada/libgnarl/s-osinte__rtems.ads Signed-off-by: Sebastian Huber --- newlib/libc/sys/rtems/include/machine/_types.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/newlib/libc/sys/rtems/include/machine/_types.h b/newlib/libc/sys/rtems/include/machine/_types.h index a30d5a3c1..a3144e8fd 100644 --- a/newlib/libc/sys/rtems/include/machine/_types.h +++ b/newlib/libc/sys/rtems/include/machine/_types.h @@ -31,6 +31,9 @@ typedef __uint32_t __mode_t; typedef __uint64_t _CLOCK_T_; #define __machine_clock_t_defined +typedef int _CLOCKID_T_; +#define __machine_clockid_t_defined + typedef int __accmode_t; /* access permissions */ typedef __uint32_t __fixpt_t; /* fixed point number */ typedef int __lwpid_t; /* Thread ID (a.k.a. LWP) */