[iproute PATCH] utils.h: provide fallback CLOCK_TAI definition

Subsystems: the rest

STALE2865d

2 messages, 2 authors, 2018-10-30 · open the first message on its own page

[iproute PATCH] utils.h: provide fallback CLOCK_TAI definition

From: Peter Korsgaard <peter@korsgaard.com>
Date: 2018-10-28 00:12:53

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

Re: [iproute PATCH] utils.h: provide fallback CLOCK_TAI definition

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2018-10-30 01:46:46

On Sat, 27 Oct 2018 17:31:02 +0200
Peter Korsgaard [off-list ref] wrote:
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>
---
Applied, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help