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>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
6e221408e6
commit
f900a21611
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue