$NetBSD: patch-ab,v 1.2 2009/11/29 21:35:07 gschwarz Exp $

--- sipb_sendrecv_tcp.cpp.orig	2003-05-29 17:30:54.000000000 +0200
+++ sipb_sendrecv_tcp.cpp	2009-11-08 19:08:08.280002000 +0100
@@ -10,7 +10,14 @@
 #include <sys/socket.h>
 #include <sys/poll.h>
 #include <sys/ioctl.h>
+#ifdef __linux__
 #include <linux/sockios.h>
+#else
+#ifdef __sun
+#include <sys/filio.h>
+#endif
+#define SIOCINQ FIONREAD
+#endif
 #include <errno.h>
 #include <string.h>
 #include <string>
