Re: [musl] [PATCH 1/1] linux/sysinfo.h: Add guarder for struct sysinfo

2020-09-30 Thread Petr Vorel
Hi Rich, ... > I don't think this is the right way to do it. It prevents getting > access to the kernel uapi structure (which may be wanted) if you're > not using glibc or if you include kernel headers before any libc > headers. Rather, , whose only real purpose is > providing this structure to

Re: [musl] [PATCH 1/1] linux/sysinfo.h: Add guarder for struct sysinfo

2020-09-30 Thread Rich Felker
On Wed, Sep 30, 2020 at 11:46:36PM +0200, Petr Vorel wrote: > for all but glibc libc. > > This fixes redefinition on MUSL which also defines struct sysinfo when > including (which includes via > ) and . > > glibc loads in . > > Signed-off-by: Petr Vorel > --- > include/uapi/linux/sysinfo.h