From 6fc230b63497dbc649eb084f62fabb2f08b2edfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20E=C3=9Fer?= Date: Tue, 22 Sep 2020 13:28:40 +0000 Subject: Fix build with -fno-common While here add license (GPLv2) --- sysutils/logtool/files/patch-src_mods.h | 37 +++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 sysutils/logtool/files/patch-src_mods.h (limited to 'sysutils/logtool/files/patch-src_mods.h') diff --git a/sysutils/logtool/files/patch-src_mods.h b/sysutils/logtool/files/patch-src_mods.h new file mode 100644 index 000000000000..c2d760025f6d --- /dev/null +++ b/sysutils/logtool/files/patch-src_mods.h @@ -0,0 +1,37 @@ +--- src/mods.h.orig 2003-04-17 11:21:37 UTC ++++ src/mods.h +@@ -45,12 +45,12 @@ short int ltm_iptables(); + char *get_host(char *host); + + /* for the snort log lines (this one's a bit complicated) */ +-short int ltm_snort(); ++extern short int ltm_snort(); + + /* variables to tell us if we're to use the functions in question or not */ +-short int ltm_use_syslog; +-short int ltm_use_snort; +-short int ltm_use_sudo; ++extern short int ltm_use_syslog; ++extern short int ltm_use_snort; ++extern short int ltm_use_sudo; + /* "ltm_unknown(); we allways have enabled (otherwise, what's the use? */ + + /* data structs for iptables and snort and so-on for linking in event->special */ +@@ -66,7 +66,7 @@ typedef struct { + char class[512]; /* Classification: field */ + char prior[512]; /* Priority: field */ + } SNORT; +-SNORT sn; ++extern SNORT sn; + + /* repeat for iptables variables */ + typedef struct { +@@ -84,7 +84,7 @@ typedef struct { + char ttl[64]; /* TTL=ttl packet time to live */ + char proto[64]; /* PROTO=UDP protocol of datagram */ + } IPTABLES; +-IPTABLES it; ++extern IPTABLES it; + + /* a wrapper struct so's we can point to structs like the above from + * event.* struct (see logtool.h for this struct) */ -- cgit v1.2.3