Makefile: add missing defines for CLOCK_TAI, SO_TXTIME and SCM_TXTIME

The commit c6f2cf7c2f ("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: c6f2cf7c2f ("cangen: add support for SO_TXTIME")

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
pull/406/head
Oliver Hartkopp 2023-01-28 13:37:49 +01:00
parent fe3717948b
commit 3b2248b48e
1 changed files with 3 additions and 0 deletions

View File

@ -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