Skip to contentSkip to conversation

utils.h: provide fallback CLOCK_TAI definition

PATCH Applied Peter Korsgaard 2 participants 2 messages Oct 28, 2018 – Oct 30, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 include/utils.h | 4 ++++
 1 file changed, 4 insertions(+)
include/utils.h +4 -0
index 258d630e..685d2c1d 100644
@@ -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);
Signature · 1 line
2.11.0
#1 lore raw
Quoted 6 lines · On Sat, 27 Oct 2018 17:31:02 +0200 Peter Korsgaard <[email protected]> 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.

---

Applied, thanks.