summaryrefslogtreecommitdiff
path: root/qemu-nbd.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-12-23 15:34:04 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-12-23 15:34:04 +0000
commit2bff4b6fbecf87f91bce64ad99e94540ed9f9f51 (patch)
tree3a980a2e49373949081347cf0dc4a4af350211a6 /qemu-nbd.c
parent59d1c1c2d774cccb0a88ff73501f97bea190c154 (diff)
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>
Diffstat (limited to 'qemu-nbd.c')
-rw-r--r--qemu-nbd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu-nbd.c b/qemu-nbd.c
index 6cdb83473..91ea01414 100644
--- a/qemu-nbd.c
+++ b/qemu-nbd.c
@@ -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"