diff --git a/configure b/configure index d815c7aa90..18aed433ba 100755 --- 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" diff --git a/qemu-nbd.c b/qemu-nbd.c index 6cdb83473f..91ea01414d 100644 --- a/qemu-nbd.c +++ b/qemu-nbd.c @@ -30,6 +30,7 @@ #include #include #include +#include #define SOCKET_PATH "/var/lock/qemu-nbd-%s"