add include for IPPROTO_TCP, fix build for FreeBSD - sacc - sacc(omys), simple … | |
git clone git://bitreich.org/sacc/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65… | |
Log | |
Files | |
Refs | |
Tags | |
LICENSE | |
--- | |
commit 1fa05223649af656df34cdcfa8f857c4ccb8954f | |
parent 20e00b45fb26bdf64473ef00cbf273d2c57cb8bb | |
Author: Hiltjo Posthuma <[email protected]> | |
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(-) | |
--- | |
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> |