* [Buildroot] [PATCH v2] uclibc: fix clock_nanosleep declaration
@ 2018-05-05 14:51 Waldemar Brodkorb
2018-05-06 21:19 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Waldemar Brodkorb @ 2018-05-05 14:51 UTC (permalink / raw)
To: buildroot
Fixes autobuild errors:
http://autobuild.buildroot.net/results/a58007263355e2734a8074d52b1b26b88973c39e
http://autobuild.buildroot.net/results/7d6fd0872efd23c7de552ab637956902b43c3f58
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Reported-by: Baruch Siach <baruch@tkos.co.il>
---
v1 -> v2: declare the functions independent from thread support
---
...re-clock_nanosleep-independent-of-thread-.patch | 34 ++++++++++++++++++++++
1 file changed, 34 insertions(+)
create mode 100644 package/uclibc/0002-librt-declare-clock_nanosleep-independent-of-thread-.patch
diff --git a/package/uclibc/0002-librt-declare-clock_nanosleep-independent-of-thread-.patch b/package/uclibc/0002-librt-declare-clock_nanosleep-independent-of-thread-.patch
new file mode 100644
index 0000000..bb9ef18
--- /dev/null
+++ b/package/uclibc/0002-librt-declare-clock_nanosleep-independent-of-thread-.patch
@@ -0,0 +1,34 @@
+From 368a1df04a32c3b95859b0ca588da8548a5f39ca Mon Sep 17 00:00:00 2001
+From: Waldemar Brodkorb <wbx@openadk.org>
+Date: Tue, 1 May 2018 19:35:20 +0200
+Subject: [PATCH] librt: declare clock_nanosleep independent of thread support
+
+Reported-by: Baruch Siach <baruch@tkos.co.il>
+Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
+---
+ include/time.h | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/include/time.h b/include/time.h
+index 785c8f6..1a14089 100644
+--- a/include/time.h
++++ b/include/time.h
+@@ -356,7 +356,6 @@ extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp)
+ # endif /* __UCLIBC_HAS_REALTIME__ */
+
+ # if defined __USE_XOPEN2K && defined __UCLIBC_HAS_ADVANCED_REALTIME__
+-# ifdef __UCLIBC_HAS_THREADS_NATIVE__
+ /* High-resolution sleep with the specified clock.
+
+ This function is a cancellation point and therefore not marked with
+@@ -367,7 +366,6 @@ extern int clock_nanosleep (clockid_t __clock_id, int __flags,
+
+ /* Return clock ID for CPU-time clock. */
+ extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __THROW;
+-# endif /* __UCLIBC_HAS_THREADS_NATIVE__ */
+ # endif
+
+ # if defined __UCLIBC_HAS_REALTIME__
+--
+2.1.4
+
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH v2] uclibc: fix clock_nanosleep declaration
2018-05-05 14:51 [Buildroot] [PATCH v2] uclibc: fix clock_nanosleep declaration Waldemar Brodkorb
@ 2018-05-06 21:19 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2018-05-06 21:19 UTC (permalink / raw)
To: buildroot
>>>>> "Waldemar" == Waldemar Brodkorb <wbx@openadk.org> writes:
> Fixes autobuild errors:
> http://autobuild.buildroot.net/results/a58007263355e2734a8074d52b1b26b88973c39e
> http://autobuild.buildroot.net/results/7d6fd0872efd23c7de552ab637956902b43c3f58
> Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
> Reported-by: Baruch Siach <baruch@tkos.co.il>
> ---
> v1 -> v2: declare the functions independent from thread support
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-05-06 21:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-05 14:51 [Buildroot] [PATCH v2] uclibc: fix clock_nanosleep declaration Waldemar Brodkorb
2018-05-06 21:19 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.