]> git.proxmox.com Git - mirror_qemu.git/commitdiff
Compile qemu-nbd also on OpenBSD and Solaris
authorBlue Swirl <blauwirbel@gmail.com>
Wed, 23 Dec 2009 15:34:04 +0000 (15:34 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Wed, 23 Dec 2009 15:34:04 +0000 (15:34 +0000)
basename() needs #include <libgen.h>.

No prototype for daemon() is available on Solaris, but link
succeeds.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
configure
qemu-nbd.c

index d815c7aa90cc9de144fe09c5bb8b97da1bb7808b..18aed433bac3c317ea1b50e26e24df26ef1e6dab 100755 (executable)
--- a/configure
+++ b/configure
@@ -2141,7 +2141,7 @@ esac
 tools=
 if test `expr "$target_list" : ".*softmmu.*"` != 0 ; then
   tools="qemu-img\$(EXESUF) qemu-io\$(EXESUF) $tools"
-  if [ "$linux" = "yes" ] ; then
+  if [ "$linux" = "yes" -o "$bsd" = "yes" -o "$solaris" = "yes" ] ; then
       tools="qemu-nbd\$(EXESUF) $tools"
     if [ "$check_utests" = "yes" ]; then
       tools="check-qint check-qstring check-qdict check-qlist $tools"
index 6cdb83473f9f215578d5ea61374a1075a389bee6..91ea01414d1abe3e7ef811658df0ef6d7c6f64b9 100644 (file)
@@ -30,6 +30,7 @@
 #include <netinet/tcp.h>
 #include <arpa/inet.h>
 #include <signal.h>
+#include <libgen.h>
 
 #define SOCKET_PATH    "/var/lock/qemu-nbd-%s"