summaryrefslogtreecommitdiff
path: root/sysutils/logtool/files/patch-src_mods.h
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2020-09-22 13:28:40 +0000
committerStefan Eßer <se@FreeBSD.org>2020-09-22 13:28:40 +0000
commit6fc230b63497dbc649eb084f62fabb2f08b2edfd (patch)
tree48f188b573901e55b9b955dd079ead21fc853c78 /sysutils/logtool/files/patch-src_mods.h
parent- Update to 1.4.3 (diff)
Fix build with -fno-common
While here add license (GPLv2)
Notes
Notes: svn path=/head/; revision=549592
Diffstat (limited to 'sysutils/logtool/files/patch-src_mods.h')
-rw-r--r--sysutils/logtool/files/patch-src_mods.h37
1 files changed, 37 insertions, 0 deletions
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) */