This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH 2/2] RTEMS: Use int for _CLOCKID_T_
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: newlib at sourceware dot org
- Date: Fri, 9 Feb 2018 12:05:24 +0100
- Subject: [PATCH 2/2] RTEMS: Use int for _CLOCKID_T_
- Authentication-results: sourceware.org; auth=none
- References: <20180209110524.12263-1-sebastian.huber@embedded-brains.de>
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(+)
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) */
--
2.12.3