diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2009-08-17 11:13:11 +0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-08-17 12:11:40 +0300 |
commit | 9e3269181e9bc56feb43bcd4e8ce0b82cd543e65 (patch) | |
tree | 224573ae99432e0e45d8082d2f4cd9bf670c1d00 /compat | |
parent | Merge branch 'master' of git://git.sv.gnu.org/qemu (diff) | |
download | qemu-kvm-9e3269181e9bc56feb43bcd4e8ce0b82cd543e65.tar.gz qemu-kvm-9e3269181e9bc56feb43bcd4e8ce0b82cd543e65.tar.bz2 qemu-kvm-9e3269181e9bc56feb43bcd4e8ce0b82cd543e65.zip |
Add compat eventfd header
Support build on rhel 5.3 where we have syscall for eventfd but not
userspace wrapper.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'compat')
-rw-r--r-- | compat/sys/eventfd.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/compat/sys/eventfd.h b/compat/sys/eventfd.h new file mode 100644 index 000000000..f55d96adb --- /dev/null +++ b/compat/sys/eventfd.h @@ -0,0 +1,13 @@ +#ifndef _COMPAT_SYS_EVENTFD +#define _COMPAT_SYS_EVENTFD + +#include <unistd.h> +#include <syscall.h> + + +static inline int eventfd (int count, int flags) +{ + return syscall(SYS_eventfd, count, flags); +} + +#endif |