[Buildroot] [PATCH 2/2] python-psutil: fix build against musl C library
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Tue Sep 20 11:30:53 UTC 2016
Hello,
On Tue, 20 Sep 2016 12:30:03 +0200, Peter Korsgaard wrote:
> > This is not really the solution recommended by the musl developers.
> > Instead, the musl developers would suggest to *not* include
> > <linux/sysinfo.h> at all, and instead duplicate the relevant
> > definitions in the userspace program.
>
> Yes, I know it is a hack (as mentioned in the description). The problem
> is that the code DOESN'T include linux/sysinfo.h, but it gets indirectly
> included from linux/ethtool.h -> linux/kernel.h -> linux/sysinfo.h.
>
> Do you have any suggestion how to fix this in a cleaner way?
The answer of the musl developers would be: don't include
<linux/ethtool.h> in the first place.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
More information about the buildroot
mailing list