public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] RTEMS: Use int for _CLOCKID_T_
@ 2018-03-06 10:42 Sebastian Huber
  0 siblings, 0 replies; only message in thread
From: Sebastian Huber @ 2018-03-06 10:42 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=f641474cb2dfdac86504479e9b4afe30833fc0b8

commit f641474cb2dfdac86504479e9b4afe30833fc0b8
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date:   Thu Feb 8 13:02:41 2018 +0100

    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 <sebastian.huber@embedded-brains.de>

Diff:
---
 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 a30d5a3..a3144e8 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) */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-03-06 10:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-06 10:42 [newlib-cygwin] RTEMS: Use int for _CLOCKID_T_ Sebastian Huber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).