summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-08-24 15:26:03 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-08-25 14:25:42 +0200
commit7b2c3621901dbb0a3535f8056a2eadb9095a5ad2 (patch)
tree5e39daae7302a4b4caf0550b1e61db4dcd2b58df
parent406bd10fb4c92282a340db6a7f725121d675f810 (diff)
downloadcygnal-7b2c3621901dbb0a3535f8056a2eadb9095a5ad2.tar.gz
cygnal-7b2c3621901dbb0a3535f8056a2eadb9095a5ad2.tar.bz2
cygnal-7b2c3621901dbb0a3535f8056a2eadb9095a5ad2.zip
Make _CLOCK_T_ system configurable
Let systems optionally provide the _CLOCK_T_ type via <machine/_types.h>. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
-rw-r--r--newlib/libc/include/sys/_types.h3
1 files changed, 3 insertions, 0 deletions
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() */