[PATCH] vmcore-dmesg: Define _GNU_SOURCE

Simon Horman horms at verge.net.au
Fri Mar 10 01:12:10 PST 2017


On Wed, Mar 08, 2017 at 08:44:40PM +0100, David Woodhouse wrote:
> On Sat, 2016-01-09 at 17:21 -0800, Khem Raj wrote:
> > loff_t is guarded with _GNU_SOURCE on some C library implementations
> > e.g. musl since this type is not defined by POSIX. Define _GNU_SOURCE to
> > include this define, it should help compiling on musl while nothing
> > changes for glibc based systems since there _GNU_SOURCE is already
> > defined
> > 
> > Signed-off-by: Khem Raj <raj.khem at gmail.com>
> 
> This appears to still be needed...

For some reason it did not hit my inbox :(

Shall I pick up the version you reposted as PATCH 7/7 ?

> > ---
> >  vmcore-dmesg/vmcore-dmesg.c | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/vmcore-dmesg/vmcore-dmesg.c b/vmcore-dmesg/vmcore-dmesg.c
> > index 0364636..a8f56df 100644
> > --- a/vmcore-dmesg/vmcore-dmesg.c
> > +++ b/vmcore-dmesg/vmcore-dmesg.c
> > @@ -1,4 +1,5 @@
> >  #define _XOPEN_SOURCE 600
> > +#define _GNU_SOURCE
> >  #define _LARGEFILE_SOURCE 1
> >  #define _FILE_OFFSET_BITS 64
> >  #include 



> _______________________________________________
> kexec mailing list
> kexec at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/kexec




More information about the kexec mailing list