summaryrefslogtreecommitdiff
path: root/net-analyzer/portmon/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-02-05 18:44:56 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-02-05 18:44:56 +0000
commit29aabba0ea759c6a2864ff5631735b67ee38e5e0 (patch)
treeab466b4dfa7abecb401b2f8039d08af4689306bb /net-analyzer/portmon/files
parentd42200bec37eef2a7478d88988ff00addd0a9202 (diff)
gentoo resync : 05.02.2020
Diffstat (limited to 'net-analyzer/portmon/files')
-rw-r--r--net-analyzer/portmon/files/portmon-2.0-fno-common.patch58
1 files changed, 58 insertions, 0 deletions
diff --git a/net-analyzer/portmon/files/portmon-2.0-fno-common.patch b/net-analyzer/portmon/files/portmon-2.0-fno-common.patch
new file mode 100644
index 000000000000..bfe6a914635e
--- /dev/null
+++ b/net-analyzer/portmon/files/portmon-2.0-fno-common.patch
@@ -0,0 +1,58 @@
+--- a/src/portmon.c
++++ b/src/portmon.c
+@@ -35,6 +35,15 @@
+ #include <getopt.h>
+ #endif
+
++int report_flag;
++int daemonize_flag;
++
++struct host_struct *hosts;
++char *err_msg;
++char logfile[STRLARGE];
++int timeout;
++int verbose;
++
+ void version(void)
+ {
+ printf("This is %s, version %s\n", PACKAGE, VERSION);
+--- a/src/portmon.h
++++ b/src/portmon.h
+@@ -31,8 +31,8 @@
+ #define STRLARGE 512
+
+ // flags
+-int report_flag;
+-int daemonize_flag;
++extern int report_flag;
++extern int daemonize_flag;
+
+ struct port
+ {
+@@ -43,7 +43,7 @@
+ };
+
+ // create an array of hosts
+-struct host_struct
++extern struct host_struct
+ {
+ char name[STRMED];
+ struct port ports[STRSMALL];
+@@ -52,13 +52,13 @@
+ *hosts;
+
+ // place to hold error messages
+-char *err_msg;
++extern char *err_msg;
+ // place we log crap
+-char logfile[STRLARGE];
++extern char logfile[STRLARGE];
+ // timeout (seconds)
+-int timeout;
++extern int timeout;
+ // verbose mode
+-int verbose;
++extern int verbose;
+
+ // Functions in various files
+