diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-02-08 13:00:42 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-03-06 11:40:16 +0100 |
commit | a9c8434527cc1115bd410a9d4c3b6aab56282a61 (patch) | |
tree | 39caf5384260e6d3c8f4cb35d5c5948d6dc12721 /newlib/libc/include | |
parent | ae67198d55bf5bab903eb01d049f15d7a35c38ba (diff) | |
download | newlib-a9c8434527cc1115bd410a9d4c3b6aab56282a61.zip newlib-a9c8434527cc1115bd410a9d4c3b6aab56282a61.tar.gz newlib-a9c8434527cc1115bd410a9d4c3b6aab56282a61.tar.bz2 |
Make _CLOCKID_T_ system configurable
Let systems optionally provide the _CLOCKID_T_ type via
<machine/_types.h>.
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Diffstat (limited to 'newlib/libc/include')
-rw-r--r-- | newlib/libc/include/sys/_types.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/_types.h b/newlib/libc/include/sys/_types.h index 72e1dc1..d8e8c0b 100644 --- a/newlib/libc/include/sys/_types.h +++ b/newlib/libc/include/sys/_types.h @@ -193,7 +193,10 @@ typedef _CLOCK_T_ __clock_t; #endif typedef _TIME_T_ __time_t; +#ifndef __machine_clockid_t_defined #define _CLOCKID_T_ unsigned long +#endif + typedef _CLOCKID_T_ __clockid_t; #define _TIMER_T_ unsigned long |