]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
utils.h: provide fallback CLOCK_TAI definition
authorPeter Korsgaard <peter@korsgaard.com>
Sat, 27 Oct 2018 15:31:02 +0000 (17:31 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 29 Oct 2018 16:54:52 +0000 (09:54 -0700)
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>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
include/utils.h

index 258d630ec9ce69959bd86d154414387c7019da74..685d2c1d31e7a25d19011cf9be2356fb74c4c858 100644 (file)
@@ -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);