ports/security/fwlogwatch/files/patch-main.h
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

32 lines
567 B
C

--- main.h.orig 2016-02-19 06:57:49.938584000 -0800
+++ main.h 2021-11-01 08:41:34.443421000 -0700
@@ -10,9 +10,15 @@
/* Paths */
+#ifndef INSTALL_DIR
#define INSTALL_DIR "/usr/local"
+#endif
+#ifndef CONF_DIR
#define CONF_DIR "/etc"
+#endif
+#ifndef LOCALE_DIR
#define LOCALE_DIR "/usr"
+#endif
/* i18n */
@@ -377,7 +383,13 @@
/* Data structures */
#include <time.h>
+#define _KERNEL
+#include <sys/param.h>
+#if __FreeBSD_version > 1400038
+#include <stdbool.h>
+#endif
#include <netinet/in.h>
+#undef _KERNEL
struct log_line {
time_t time;