Re: [PATCH 04/13] qemu-kvm: Remove eventfd compat header

Michael S. Tsirkin
2011-07-04T10:37:28Z

On Sun, Jul 03, 2011 at 08:31:11PM +0200, Bernhard Held wrote:
> SYS_eventfd2 is not defined on systems with old glibc. These numbers
> are working for me, for 32 and 64 bit linux. What means
> "__NR_eventfd2 does seem to exit"?

My system seems to have a definition for the 64 bit
_NR_eventfd2 in unistd.h.
# grep __NR_eventfd2 /usr/include/*/*h
/usr/include/asm-x86_64/unistd.h:#define __NR_eventfd2 290
So I think we should use another name to avoid conflicts.

--
MST