From 3b2248b48e3e439348d74d4e168ae53712e49656 Mon Sep 17 00:00:00 2001 From: Oliver Hartkopp Date: Sat, 28 Jan 2023 13:37:49 +0100 Subject: [PATCH] Makefile: add missing defines for CLOCK_TAI, SO_TXTIME and SCM_TXTIME The commit c6f2cf7c2f27 ("cangen: add support for SO_TXTIME") relies on several toolchain features ("CLOCK_TAI", "SO_TXTIME", "SCM_TXTIME") which are not present in old toolchain. Add defines to fix compilation on older toolchains. Reported-by: https://github.com/b-thomson Link: https://github.com/linux-can/can-utils/issues/398 Fixes: c6f2cf7c2f27 ("cangen: add support for SO_TXTIME") Signed-off-by: Oliver Hartkopp --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 529343d..29eef99 100644 --- a/Makefile +++ b/Makefile @@ -52,6 +52,9 @@ CPPFLAGS += \ -DPF_CAN=29 \ -DSO_RXQ_OVFL=40 \ -DSCM_TIMESTAMPING_OPT_STATS=54 \ + -DCLOCK_TAI=11 \ + -DSO_TXTIME=61 \ + -DSCM_TXTIME=SO_TXTIME \ -D_FILE_OFFSET_BITS=64 \ -D_GNU_SOURCE