On Sat, Jan 23, 2021 at 5:56 PM Geoffrey Le Gourriérec
[off-list ref] wrote:
I did a quick header dependency analysis starting from __kernel_time64_t
(one of the offending types), but could "follow up" to linux/time_types.h
as expected; so I fail to understand how this could break. What's even
more confusing is linux/time_types.h includes linux/types.h itself.
Could you try producing a preprocessed version of the source file using 'gcc -E'
instead of 'gcc -c', using the same arguments as in the failing command?
The output of that should help pinpoint what is going wrong.
I'm fairly sure the patch you sent gets you back to the original problem:
Since it avoids including linux/time_types.h, the compiler no longer
sees the line that fails to build, but at the same time you can not
actually use the SIOCGSTAMP_OLD and SIOCGSTAMPNS_OLD
constants any more, as the structures will be undefined.
Arnd