From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Korsgaard Subject: [iproute PATCH] utils.h: provide fallback CLOCK_TAI definition Date: Sat, 27 Oct 2018 17:31:02 +0200 Message-ID: <20181027153102.32302-1-peter@korsgaard.com> Cc: netdev@vger.kernel.org, Peter Korsgaard To: Stephen Hemminger , Vinicius Costa Gomes Return-path: Received: from mail-ed1-f68.google.com ([209.85.208.68]:44813 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728305AbeJ1AMx (ORCPT ); Sat, 27 Oct 2018 20:12:53 -0400 Received: by mail-ed1-f68.google.com with SMTP id z21-v6so3738013edb.11 for ; Sat, 27 Oct 2018 08:31:31 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: 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 --- include/utils.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/utils.h b/include/utils.h index 258d630e..685d2c1d 100644 --- a/include/utils.h +++ b/include/utils.h @@ -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); -- 2.11.0