mirror of https://github.com/proxmox/mirror_qemu
Compile qemu-nbd also on OpenBSD and Solaris
basename() needs #include <libgen.h>. No prototype for daemon() is available on Solaris, but link succeeds. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>master
parent
59d1c1c2d7
commit
2bff4b6fbe
|
@ -2141,7 +2141,7 @@ esac
|
||||||
tools=
|
tools=
|
||||||
if test `expr "$target_list" : ".*softmmu.*"` != 0 ; then
|
if test `expr "$target_list" : ".*softmmu.*"` != 0 ; then
|
||||||
tools="qemu-img\$(EXESUF) qemu-io\$(EXESUF) $tools"
|
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"
|
tools="qemu-nbd\$(EXESUF) $tools"
|
||||||
if [ "$check_utests" = "yes" ]; then
|
if [ "$check_utests" = "yes" ]; then
|
||||||
tools="check-qint check-qstring check-qdict check-qlist $tools"
|
tools="check-qint check-qstring check-qdict check-qlist $tools"
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
#include <netinet/tcp.h>
|
#include <netinet/tcp.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
#include <libgen.h>
|
||||||
|
|
||||||
#define SOCKET_PATH "/var/lock/qemu-nbd-%s"
|
#define SOCKET_PATH "/var/lock/qemu-nbd-%s"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue