[2/2] RTEMS: Use int for _CLOCKID_T_

Message ID 20180209110524.12263-2-sebastian.huber@embedded-brains.de
State Accepted
Commit f641474cb2dfdac86504479e9b4afe30833fc0b8
Headers show
Series
  • [1/2] Make _CLOCKID_T_ system configurable
Related show

Commit Message

Sebastian Huber Feb. 9, 2018, 11:05 a.m.
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 <sebastian.huber@embedded-brains.de>

---
 newlib/libc/sys/rtems/include/machine/_types.h | 3 +++
 1 file changed, 3 insertions(+)

-- 
2.12.3

Patch

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) */