[Buildroot] [PATCH/next 1/1] linuxptp: fix build with kernel headers >= 4.19
thomas.petazzoni at bootlin.com
Mon Dec 31 16:13:56 UTC 2018
On Thu, 29 Nov 2018 22:47:30 +0100, Fabrice Fontaine wrote:
> clockid_t has been added in net_tstamp.h since kernel 4.19 and
> As a result, build fails on:
> In file included from clock.c:20:
> /home/peko/autobuild/instance-0/output/host/arc-buildroot-linux-uclibc/sysroot/usr/include/linux/net_tstamp.h:158:2: error: unknown type name 'clockid_t'
> clockid_t clockid; /* reference clockid */
> To fix this error, add (or move) include on time.h before net_tstamp.h
> in clock.c, sk.c and timemaster.c
> - http://autobuild.buildroot.org/results/4f53c0b6f3395f4d1ec0aa58f9df36c8145b1066
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
The issue has been fixed in the upstream Linux kernel:
This commit is part of Linux 4.20. It has a "Fixes" tag, so it should
normally be backported to Linux 4.19 at some point, even though this
hasn't happened yet.
So instead of doing a work around in linuxptp, we'll use the upstream
Linux kernel fix.
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
More information about the buildroot