summaryrefslogtreecommitdiff
path: root/nbd.c
diff options
context:
space:
mode:
Diffstat (limited to 'nbd.c')
-rw-r--r--nbd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nbd.c b/nbd.c
index e9308ee04..9bebe4a9b 100644
--- a/nbd.c
+++ b/nbd.c
@@ -22,6 +22,9 @@
#include <errno.h>
#include <string.h>
#include <sys/ioctl.h>
+#ifdef __sun__
+#include <sys/ioccom.h>
+#endif
#include <ctype.h>
#include <inttypes.h>
#include <sys/socket.h>