From 2bff4b6fbecf87f91bce64ad99e94540ed9f9f51 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Wed, 23 Dec 2009 15:34:04 +0000 Subject: [PATCH] Compile qemu-nbd also on OpenBSD and Solaris basename() needs #include . No prototype for daemon() is available on Solaris, but link succeeds. Signed-off-by: Blue Swirl --- configure | 2 +- qemu-nbd.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index d815c7aa90c..18aed433bac 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 6cdb83473f9..91ea01414d1 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" -- 2.39.5