check Linux for Linux specific header and non-standard SIOCOUTQ - geomyidae - A small C-based gopherd. HTML git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 37420efd2d6430a88d60edd2c373689069b3c26e DIR parent 79a7e08112044a199af35e9c7f9a3f75c3639e25 HTML 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: M ind.c | 2 ++ M main.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) --- DIR 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; } DIR 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>