qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] virtio-9p: fix QEMU build break
@ 2011-10-10 10:30 Zhi Yong Wu
  2011-10-10 16:35 ` Aneesh Kumar K.V
  0 siblings, 1 reply; 6+ messages in thread
From: Zhi Yong Wu @ 2011-10-10 10:30 UTC (permalink / raw)
  To: qemu-devel; +Cc: stefanha, kvm, jvrao, zwu.kernel, Zhi Yong Wu, aneesh.kumar

qemu build break due to the redefinition of struct file_handle. My qemu.git/HEAD is 8acbc9b21d757a6be4f8492e547b8159703a0547

Below is the log:
[root@f15 qemu]# make
  CC    qapi-generated/qga-qapi-types.o
  LINK  qemu-ga
  CC    libhw64/9pfs/virtio-9p-handle.o
/home/zwu/work/virt/qemu/hw/9pfs/virtio-9p-handle.c:31:8: error: redefinition of "struct file_handle"
/usr/include/bits/fcntl.h:254:8: note: originally defined here
make[1]: *** [9pfs/virtio-9p-handle.o] Error 1
make: *** [subdir-libhw64] Error 2

[root@f15 qemu]# rpm -qf /usr/include/bits/fcntl.h
glibc-headers-2.13.90-9.x86_64

Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
---
 hw/9pfs/virtio-9p-handle.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/9pfs/virtio-9p-handle.c b/hw/9pfs/virtio-9p-handle.c
index 5c8b5ed..5b3a867 100644
--- a/hw/9pfs/virtio-9p-handle.c
+++ b/hw/9pfs/virtio-9p-handle.c
@@ -27,7 +27,7 @@ struct handle_data {
     int handle_bytes;
 };
 
-#if __GLIBC__ <= 2 && __GLIBC_MINOR__ < 14
+#if __GLIBC__ <= 2 && __GLIBC_MINOR__ < 13
 struct file_handle {
         unsigned int handle_bytes;
         int handle_type;
-- 
1.7.6

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-10-18  5:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-10 10:30 [Qemu-devel] [PATCH] virtio-9p: fix QEMU build break Zhi Yong Wu
2011-10-10 16:35 ` Aneesh Kumar K.V
2011-10-10 16:49   ` Aneesh Kumar K.V
2011-10-11  6:09     ` Zhi Yong Wu
2011-10-18  3:46     ` David Gibson
2011-10-18  4:59       ` Aneesh Kumar K.V

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).