Author: Joel Rosdahl
Last-Update: 2015-05-10
Bug-Debian: https://bugs.debian.org/55366.

Index: tcputils/relay.c
===================================================================
--- tcputils.orig/relay.c	2015-05-10 18:48:51.643776888 +0200
+++ tcputils/relay.c	2015-05-10 18:48:51.639777181 +0200
@@ -4,10 +4,10 @@
 #include <sys/stat.h>
 #include <sys/time.h>
 #include <sys/types.h>
-#if defined(__hpux__) || defined(__linux__)
-#  include <sys/ioctl.h>
-#else
-#  include <sys/filio.h>
+#include <sys/ioctl.h>
+#if defined(__sun__)
+#  include <sys/filio.h>    /* The official way to get FIONREAD in SunOS;
+			       others seem to get it from <sys/ioctl.h> */
 #endif
 #include <sys/socket.h>
 
