* [Buildroot] [PATCH] iproute2: fix build on glibc < 2.21 / uClibc
@ 2018-10-27 15:45 Peter Korsgaard
2018-10-27 20:58 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Peter Korsgaard @ 2018-10-27 15:45 UTC (permalink / raw)
To: buildroot
Fixes:
http://autobuild.buildroot.net/results/fc9/fc99b1ad49080f552ce611d5a7a2f9fe171b5a2c/
http://autobuild.buildroot.net/results/5f7/5f74c258a3adafa5aecd4abc378eef0573143764/
q_{etf,taprio}.c uses CLOCK_TAI, which isn't exposed by glibc < 2.21 or
uClibc, breaking the build. Provide a fallback definition like it is done
for IPPROTO_MPLS and others.
Patch submitted upstream:
https://lwn.net/ml/netdev/20181027153102.32302-1-peter%40korsgaard.com/
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
...s.h-provide-fallback-CLOCK_TAI-definition.patch | 32 ++++++++++++++++++++++
1 file changed, 32 insertions(+)
create mode 100644 package/iproute2/0001-utils.h-provide-fallback-CLOCK_TAI-definition.patch
diff --git a/package/iproute2/0001-utils.h-provide-fallback-CLOCK_TAI-definition.patch b/package/iproute2/0001-utils.h-provide-fallback-CLOCK_TAI-definition.patch
new file mode 100644
index 0000000000..c89db2b2eb
--- /dev/null
+++ b/package/iproute2/0001-utils.h-provide-fallback-CLOCK_TAI-definition.patch
@@ -0,0 +1,32 @@
+From 950bf78adc9a3290ed383eaeef01dee6543cfb97 Mon Sep 17 00:00:00 2001
+From: Peter Korsgaard <peter@korsgaard.com>
+Date: Sat, 27 Oct 2018 17:25:31 +0200
+Subject: [PATCH] utils.h: provide fallback CLOCK_TAI definition
+
+q_{etf,taprio}.c uses CLOCK_TAI, which isn't exposed by glibc < 2.21 or
+uClibc, breaking the build. Provide a fallback definition like it is done
+for IPPROTO_MPLS and others.
+
+Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
+---
+ include/utils.h | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/include/utils.h b/include/utils.h
+index 258d630e..685d2c1d 100644
+--- a/include/utils.h
++++ b/include/utils.h
+@@ -126,6 +126,10 @@ struct ipx_addr {
+ #define IPPROTO_MPLS 137
+ #endif
+
++#ifndef CLOCK_TAI
++# define CLOCK_TAI 11
++#endif
++
+ __u32 get_addr32(const char *name);
+ int get_addr_1(inet_prefix *dst, const char *arg, int family);
+ int get_prefix_1(inet_prefix *dst, char *arg, int family);
+--
+2.11.0
+
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] iproute2: fix build on glibc < 2.21 / uClibc
2018-10-27 15:45 [Buildroot] [PATCH] iproute2: fix build on glibc < 2.21 / uClibc Peter Korsgaard
@ 2018-10-27 20:58 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2018-10-27 20:58 UTC (permalink / raw)
To: buildroot
>>>>> "Peter" == Peter Korsgaard <peter@korsgaard.com> writes:
> Fixes:
> http://autobuild.buildroot.net/results/fc9/fc99b1ad49080f552ce611d5a7a2f9fe171b5a2c/
> http://autobuild.buildroot.net/results/5f7/5f74c258a3adafa5aecd4abc378eef0573143764/
> q_{etf,taprio}.c uses CLOCK_TAI, which isn't exposed by glibc < 2.21 or
> uClibc, breaking the build. Provide a fallback definition like it is done
> for IPPROTO_MPLS and others.
> Patch submitted upstream:
> https://lwn.net/ml/netdev/20181027153102.32302-1-peter%40korsgaard.com/
> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-10-27 20:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-27 15:45 [Buildroot] [PATCH] iproute2: fix build on glibc < 2.21 / uClibc Peter Korsgaard
2018-10-27 20:58 ` 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.