Patchwork [4/8] nbd: Haiku has _IO() in its BSD compatibility layer

login
register
mail settings
Submitter Andreas Färber
Date Sept. 19, 2010, 10:50 p.m.
Message ID <1284936650-1203-5-git-send-email-andreas.faerber@web.de>
Download mbox | patch
Permalink /patch/65174/
State New
Headers show

Comments

Andreas Färber - Sept. 19, 2010, 10:50 p.m.
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
---
 nbd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/nbd.c b/nbd.c
index 011b50f..d4c0ab2 100644
--- a/nbd.c
+++ b/nbd.c
@@ -23,7 +23,7 @@ 
 #ifndef _WIN32
 #include <sys/ioctl.h>
 #endif
-#ifdef __sun__
+#if defined(__sun__) || defined(__HAIKU__)
 #include <sys/ioccom.h>
 #endif
 #include <ctype.h>