Skip to content

Commit 552eb43

Browse files
committed
enable clock features
1 parent ca17b44 commit 552eb43

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

dka64/patches/newlib-3.0.0.patch

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7265,6 +7265,20 @@ index a3fb5c0..1ead46b 100644
72657265
#endif
72667266
+
72677267
+#endif // _dirent_h_
7268+
diff --git a/newlib/libc/include/sys/features.h b/newlib/libc/include/sys/features.h
7269+
index 2900b33..6efb54e 100644
7270+
--- a/newlib/libc/include/sys/features.h
7271+
+++ b/newlib/libc/include/sys/features.h
7272+
@@ -330,6 +330,9 @@ extern "C" {
7273+
# define __SSP_FORTIFY_LEVEL 0
7274+
#endif
7275+
7276+
+#define _POSIX_MONOTONIC_CLOCK 200112L
7277+
+#define _POSIX_TIMERS 1
7278+
+
7279+
/* RTEMS adheres to POSIX -- 1003.1b with some features from annexes. */
7280+
7281+
#ifdef __rtems__
72687282
diff --git a/newlib/libc/include/sys/iosupport.h b/newlib/libc/include/sys/iosupport.h
72697283
new file mode 100644
72707284
index 0000000..cc3acdd

0 commit comments

Comments
 (0)