Re: [Qemu-devel] [PATCH] memfd: fix configure test

2017-11-28 Thread Florian Weimer
On 11/28/2017 12:42 PM, Marc-André Lureau wrote: Couldn't the declarations be put in sys/memfd.h like the man claimed it would be for > 1y? We discussed it. It was a typo in the manual page. There never was a header file: https://marc.info/?l=linux-man&m=150988359906012&w=2 The UAPI h

Re: [Qemu-devel] [PATCH] memfd: fix configure test

2017-11-28 Thread Peter Maydell
On 28 November 2017 at 11:49, Paolo Bonzini wrote: > On 28/11/2017 12:42, Marc-André Lureau wrote: >> It is introduced by this commit, right? >> https://sourceware.org/git/?p=glibc.git;a=commit;h=59d2cbb1fe4b8601d5cbd359c3806973eab6c62d >> >> (I added Florian Weimer in cc) >> >> So it's not part o

Re: [Qemu-devel] [PATCH] memfd: fix configure test

2017-11-28 Thread Paolo Bonzini
On 28/11/2017 12:42, Marc-André Lureau wrote: > Hi > > On Tue, Nov 28, 2017 at 12:32 PM, Paolo Bonzini wrote: >> Recent glibc added memfd_create in sys/mman.h. This conflicts with >> the definition in util/memfd.c: >> >> /builddir/build/BUILD/qemu-2.11.0-rc1/util/memfd.c:40:12: error: static

Re: [Qemu-devel] [PATCH] memfd: fix configure test

2017-11-28 Thread Marc-André Lureau
Hi On Tue, Nov 28, 2017 at 12:32 PM, Paolo Bonzini wrote: > Recent glibc added memfd_create in sys/mman.h. This conflicts with > the definition in util/memfd.c: > > /builddir/build/BUILD/qemu-2.11.0-rc1/util/memfd.c:40:12: error: static > declaration of memfd_create follows non-static decla

[Qemu-devel] [PATCH] memfd: fix configure test

2017-11-28 Thread Paolo Bonzini
Recent glibc added memfd_create in sys/mman.h. This conflicts with the definition in util/memfd.c: /builddir/build/BUILD/qemu-2.11.0-rc1/util/memfd.c:40:12: error: static declaration of memfd_create follows non-static declaration Fix the configure test, and remove the sys/memfd.h inclusion