[CRIU] [PATCH 1/2] memfd: Test for __NR_memfd_create during building

Cyrill Gorcunov gorcunov at gmail.com
Mon Feb 8 09:40:29 PST 2016


On Mon, Feb 08, 2016 at 08:23:27PM +0300, Pavel Emelyanov wrote:
> > +
> > +int main(void)
> > +{
> > +#ifdef __NR_memfd_create
> 
> Huh? Is it necessarily to redefine __NR_memfd_create
> with CONFIG_HAS_MEMFD in such a tricky way?

I think it's better to check on building stage without
spreading __NR_memfd_create all over the code. CONFIG_
stands exactly for that.


More information about the CRIU mailing list