| check Linux for Linux specific header and non-standard SIOCOUTQ - geomyidae - A… | |
| git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfri… | |
| Log | |
| Files | |
| Refs | |
| Tags | |
| README | |
| LICENSE | |
| --- | |
| commit 37420efd2d6430a88d60edd2c373689069b3c26e | |
| parent 79a7e08112044a199af35e9c7f9a3f75c3639e25 | |
| Author: Hiltjo Posthuma <[email protected]> | |
| Date: Wed, 7 Feb 2018 20:40:22 +0100 | |
| check Linux for Linux specific header and non-standard SIOCOUTQ | |
| Signed-off-by: Christoph Lohmann <[email protected]> | |
| Diffstat: | |
| M ind.c | 2 ++ | |
| M main.c | 1 - | |
| 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> |