[PATCH] tests: fix missing SHM_NORESERVE for mips

Paul Chaignon paul.chaignon at gmail.com
Sun Nov 10 08:40:11 UTC 2019


On Sun, Nov 10, 2019 at 02:12:11AM +0300, Dmitry V. Levin wrote:
> On Sat, Nov 09, 2019 at 09:08:32AM +0100, Paul Chaignon wrote:
> > * tests/ipc_shm.c (SHM_NORESERVE): Define.
> > 
> > Signed-off-by: Paul Chaignon <paul.chaignon at gmail.com>
> > ---
> >  tests/ipc_shm.c | 4 ++++
> >  1 file changed, 4 insertions(+)
> > 
> > diff --git a/tests/ipc_shm.c b/tests/ipc_shm.c
> > index 76c19d8d..f4d11fcb 100644
> > --- a/tests/ipc_shm.c
> > +++ b/tests/ipc_shm.c
> > @@ -25,6 +25,10 @@
> >  # define SHM_STAT_ANY 15
> >  #endif
> >  
> > +#ifndef SHM_NORESERVE
> > +# define SHM_NORESERVE 010000
> > +#endif
> > +
> >  #include "xlat.h"
> >  #include "xlat/shm_resource_flags.h"
> >  
> 
> I wonder why it hasn't been an issue before, but applied anyway.
> Thanks!

Maybe the definition is only missing for some specific version?  I was
running a Debian 8.11 with Linux 4.1.4 (gcc23 in project Compile Farm).

Paul


More information about the Strace-devel mailing list