add include for IPPROTO_TCP, fix build for FreeBSD - 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 1fa05223649af656df34cdcfa8f857c4ccb8954f DIR parent 20e00b45fb26bdf64473ef00cbf273d2c57cb8bb HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 6 Aug 2017 16:21:24 +0200 add include for IPPROTO_TCP, fix build for FreeBSD Diffstat: M sacc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/sacc.c b/sacc.c @@ -2,12 +2,13 @@ #include <errno.h> #include <fcntl.h> #include <netdb.h> +#include <netinet/in.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || \ - defined(___FreeBSD__) + defined(__FreeBSD__) #include <sys/ioctl.h> #else #include <stropts.h>