commit 37420efd2d6430a88d60edd2c373689069b3c26e
parent 79a7e08112044a199af35e9c7f9a3f75c3639e25
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Wed,  7 Feb 2018 20:40:22 +0100
check Linux for Linux specific header and non-standard SIOCOUTQ
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/ind.c b/ind.c
@@ -61,7 +61,9 @@ pendingbytes(int sock)
 	int pending;
 
 	pending = 0;
+#ifdef SIOCOUTQ
 	ioctl(sock, SIOCOUTQ, &pending);
+#endif
 
 	return pending;
 }
diff --git a/main.c b/main.c
@@ -16,7 +16,6 @@
 #include <sys/wait.h>
 #include <sys/types.h>
 #include <sys/ioctl.h>
-#include <linux/sockios.h>
 #include <signal.h>
 #include <string.h>
 #include <strings.h>