Re: iproute2: fix build on glibc < 2.21 / uClibc

From: Petr Vorel <hidden>
Date: 2018-10-28 19:00:33

Subject: [iproute] utils.h: provide fallback CLOCK_TAI definition
In-Reply-To: [ref]
To: Stephen Hemminger <stephen@networkplumber.org>,
 Vinicius Costa Gomes [off-list ref]
Cc: netdev@vger.kernel.org, Peter Korsgaard <peter@korsgaard.com>
From: Petr Vorel <redacted>
List-Id: <netdev.vger.kernel.org>
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>
Reviewed-by: Petr Vorel <redacted>
---
 include/utils.h | 4 ++++
 1 file changed, 4 insertions(+)

Kind regards,
Petr
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help