ports/security/fwlogwatch/files/patch-whois.c
Cy Schubert 8ddd812bf2 security/fwanalog: Fix 14-CURRENT build
Chase the 14-CURRENT restructure the bool definition.

MFH after:	1 week
2021-11-01 09:46:24 -07:00

16 lines
360 B
C

--- whois.c.orig 2016-02-19 06:35:50.592222000 -0800
+++ whois.c 2021-11-01 08:45:36.119198000 -0700
@@ -14,7 +14,13 @@
#include <strings.h>
#endif
+#define _KERNEL
+#include <sys/param.h>
+#if __FreeBSD_version > 1400038
+#include <stdbool.h>
+#endif
#include <netinet/in.h>
+#undef _KERNEL
#include <arpa/inet.h>
#include "main.h"
#include "utils.h"