Include OS-dependant headers - sacc - sacc(omys), simple console gopher client | |
git clone git://bitreich.org/sacc/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65… | |
Log | |
Files | |
Refs | |
Tags | |
LICENSE | |
--- | |
commit 7a2bdea6e18d2338126d3cab8fdc1b0240920801 | |
parent fdae99f75651ec33854a55654887608fb4f2947c | |
Author: Quentin Rameau <[email protected]> | |
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(-) | |
--- | |
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> |