From 552eb4380cd529449fb508bc51934f848a526098 Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Tue, 27 Feb 2018 22:22:33 +0000 Subject: [PATCH] enable clock features --- dka64/patches/newlib-3.0.0.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/dka64/patches/newlib-3.0.0.patch b/dka64/patches/newlib-3.0.0.patch index 50b65d4..fa1b40f 100644 --- a/dka64/patches/newlib-3.0.0.patch +++ b/dka64/patches/newlib-3.0.0.patch @@ -7265,6 +7265,20 @@ index a3fb5c0..1ead46b 100644 #endif + +#endif // _dirent_h_ +diff --git a/newlib/libc/include/sys/features.h b/newlib/libc/include/sys/features.h +index 2900b33..6efb54e 100644 +--- a/newlib/libc/include/sys/features.h ++++ b/newlib/libc/include/sys/features.h +@@ -330,6 +330,9 @@ extern "C" { + # define __SSP_FORTIFY_LEVEL 0 + #endif + ++#define _POSIX_MONOTONIC_CLOCK 200112L ++#define _POSIX_TIMERS 1 ++ + /* RTEMS adheres to POSIX -- 1003.1b with some features from annexes. */ + + #ifdef __rtems__ diff --git a/newlib/libc/include/sys/iosupport.h b/newlib/libc/include/sys/iosupport.h new file mode 100644 index 0000000..cc3acdd