[PATCH v3] backends/ppc_initreg.c: include <asm/ptrace.h>.

Mark Wielaard mark@klomp.org
Fri Feb 5 21:12:54 GMT 2021


On Fri, 2021-02-05 at 21:00 +0300, Dmitry V. Levin wrote:
> On Fri, Feb 05, 2021 at 02:52:06PM -0300, Érico Nogueira via
> Elfutils-devel wrote:
> > 
> > diff --git a/backends/ppc_initreg.c b/backends/ppc_initreg.c
> > index 0e0d3599..e5cca7e1 100644
> > --- a/backends/ppc_initreg.c
> > +++ b/backends/ppc_initreg.c
> > @@ -33,6 +33,7 @@
> >  #include <stdlib.h>
> >  #if defined(__powerpc__) && defined(__linux__)
> >  # include <sys/ptrace.h>
> > +# include <asm/ptrace.h>
> >  # include <sys/user.h>
> >  #endif
> >  
> 
> LGTM, thanks.

Actually tested against some older ppc, ppc64 and ppc64le setups and
things look fine. Pushed.

Thanks,

Mark


More information about the Elfutils-devel mailing list