sacc

sacc(omys), simple console gopher client (mirror)
git clone https://git.parazyd.org/sacc
Log | Files | Refs | LICENSE

commit 7a2bdea6e18d2338126d3cab8fdc1b0240920801
parent fdae99f75651ec33854a55654887608fb4f2947c
Author: Quentin Rameau <quinq@fifth.space>
Date:   Fri,  7 Jul 2017 16:04:09 +0200

Include OS-dependant headers

Thanks to Hiltjo for the suggestion!

Diffstat:
Msacc.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/sacc.c b/sacc.c @@ -5,7 +5,12 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || \ + defined(___FreeBSD__) +#include <sys/ioctl.h> +#else #include <stropts.h> +#endif #include <unistd.h> #include <sys/socket.h> #include <sys/types.h>