Include OS-dependant headers - sacc - sacc(omys), simple console gopher client HTML git clone git://bitreich.org/sacc/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/sacc/ DIR Log DIR Files DIR Refs DIR Tags DIR LICENSE --- DIR commit 7a2bdea6e18d2338126d3cab8fdc1b0240920801 DIR parent fdae99f75651ec33854a55654887608fb4f2947c HTML 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: M sacc.c | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) --- DIR 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>