Skip to contentSkip to conversation

iproute2: fix build on glibc < 2.21 / uClibc

DISCUSSION Petr Vorel 1 participant 1 message Oct 28, 2018

Subsystems (2)
lore
Share & tools
lore

Petr Vorel

author Reviewed-by
#0 lore raw

Subject: [iproute] utils.h: provide fallback CLOCK_TAI definition
In-Reply-To: <[email protected]>
To: Stephen Hemminger <[email protected]>,
Vinicius Costa Gomes <[email protected]>
Cc: [email protected], Peter Korsgaard <[email protected]>
From: Petr Vorel <[email protected]>
List-Id: <netdev.vger.kernel.org>

Quoted 5 lines

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.

Quoted 3 lines
---
 include/utils.h | 4 ++++
 1 file changed, 4 insertions(+)

Kind regards,
Petr