From: Corinna Vinschen <vinschen@redhat.com>
To: newlib@sourceware.org
Subject: Re: [PATCH 1/2] Make _CLOCK_T_ system configurable
Date: Fri, 25 Aug 2017 12:14:00 -0000 [thread overview]
Message-ID: <20170825120706.GC7636@calimero.vinschen.de> (raw)
In-Reply-To: <20170824133022.12921-1-sebastian.huber@embedded-brains.de>
[-- Attachment #1: Type: text/plain, Size: 878 bytes --]
On Aug 24 15:30, Sebastian Huber wrote:
> Let systems optionally provide the _CLOCK_T_ type via
> <machine/_types.h>.
>
> Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
> ---
> newlib/libc/include/sys/_types.h | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/newlib/libc/include/sys/_types.h b/newlib/libc/include/sys/_types.h
> index 98b93ce71..d27979c9d 100644
> --- a/newlib/libc/include/sys/_types.h
> +++ b/newlib/libc/include/sys/_types.h
> @@ -180,7 +180,10 @@ typedef _LOCK_RECURSIVE_T _flock_t;
> typedef void *_iconv_t;
> #endif
>
> +#ifndef __machine_clock_t_defined
> #define _CLOCK_T_ unsigned long /* clock() */
> +#endif
> +
> typedef _CLOCK_T_ __clock_t;
>
> #define _TIME_T_ long /* time() */
> --
> 2.12.3
ACK
Thanks,
Corinna
--
Corinna Vinschen
Cygwin Maintainer
Red Hat
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
prev parent reply other threads:[~2017-08-25 12:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-24 13:31 Sebastian Huber
2017-08-24 14:33 ` [PATCH 2/2] RTEMS: Use __uint64_t for _CLOCK_T_ Sebastian Huber
2017-08-25 12:14 ` Corinna Vinschen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170825120706.GC7636@calimero.vinschen.de \
--to=vinschen@redhat.com \
--cc=newlib@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).