aboutsummaryrefslogtreecommitdiff
path: root/nbd.c
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-08-02 01:57:02 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-08-02 01:57:02 +0000
commit7e00eb9b98ba98963a669c72e43b06c41917f368 (patch)
tree778fc9a29cefbb6a91ce751bb94150e2ad6f0c95 /nbd.c
parentDelete unused variable. (diff)
downloadqemu-kvm-7e00eb9b98ba98963a669c72e43b06c41917f368.tar.gz
qemu-kvm-7e00eb9b98ba98963a669c72e43b06c41917f368.tar.bz2
qemu-kvm-7e00eb9b98ba98963a669c72e43b06c41917f368.zip
Fix compilation of nbd on Solaris (Andreas Faerber)
Compilation of QEMU is currently broken on Solaris due to nbd's use of _IO and due to network libraries not being linked into qemu-img. The attached patch adds the appropriate libraries (copied from Makefile.target) and includes an additional Sun-specific header for _IO. With these fixes it compiles okay, on OpenSolaris snv_93 (amd64). Signed-off-by: Andreas Faerber <andreas.faerber@web.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4982 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'nbd.c')
-rw-r--r--nbd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nbd.c b/nbd.c
index e9308ee04..9bebe4a9b 100644
--- a/nbd.c
+++ b/nbd.c
@@ -22,6 +22,9 @@
#include <errno.h>
#include <string.h>
#include <sys/ioctl.h>
+#ifdef __sun__
+#include <sys/ioccom.h>
+#endif
#include <ctype.h>
#include <inttypes.h>
#include <sys/socket.h>