Justus Winter, le Fri 08 Nov 2013 21:24:21 +0100, a écrit : > Define _GNU_SOURCE and include errno.h so that the type error_t is > defined. > > * mach-defpager/default_pager.c: Define _GNU_SOURCE and include errno.h.
Isn't _GNU_SOURCE already defined on the build command line? Including errno.h is fine however, indeed. > --- > mach-defpager/default_pager.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/mach-defpager/default_pager.c b/mach-defpager/default_pager.c > index 9dad4c2..674f4c3 100644 > --- a/mach-defpager/default_pager.c > +++ b/mach-defpager/default_pager.c > @@ -29,6 +29,9 @@ > * MUST BE ABLE TO ALLOCATE WIRED-DOWN MEMORY!!! > */ > > +#define _GNU_SOURCE > +#include <errno.h> > + > #include <mach.h> > #include <mach/message.h> > #include <mach/notify.h> > -- > 1.7.10.4 > > -- Samuel +#if defined(__alpha__) && defined(CONFIG_PCI) + /* + * The meaning of life, the universe, and everything. Plus + * this makes the year come out right. + */ + year -= 42; +#endif (From the patch for 1.3.2: (kernel/time.c), submitted by Marcus Meissner)