diff options
author | 2020-01-29 19:26:47 +0100 | |
---|---|---|
committer | 2020-01-29 19:27:00 +0100 | |
commit | bc9b86c732208adfb737b9431a2bb02289f44f1f (patch) | |
tree | 0cf3868cb6f8d3bed41eb8bfd6747757f7d9fc61 /net-misc/dibbler/files | |
parent | x11-plugins/wmpower: fix build with -fno-common (diff) | |
download | gentoo-bc9b86c732208adfb737b9431a2bb02289f44f1f.tar.gz gentoo-bc9b86c732208adfb737b9431a2bb02289f44f1f.tar.bz2 gentoo-bc9b86c732208adfb737b9431a2bb02289f44f1f.zip |
net-misc/dibbler: fix build with -fno-common
Thanks jer for patch
Closes: https://bugs.gentoo.org/706806
Package-Manager: Portage-2.3.86, Repoman-2.3.20
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'net-misc/dibbler/files')
-rw-r--r-- | net-misc/dibbler/files/dibbler-1.0.1-fno-common.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/net-misc/dibbler/files/dibbler-1.0.1-fno-common.patch b/net-misc/dibbler/files/dibbler-1.0.1-fno-common.patch new file mode 100644 index 000000000000..d08b6bbd212f --- /dev/null +++ b/net-misc/dibbler/files/dibbler-1.0.1-fno-common.patch @@ -0,0 +1,25 @@ +--- a/Port-linux/interface.c ++++ b/Port-linux/interface.c +@@ -43,6 +43,9 @@ + #include <linux/sockios.h> + #include <linux/if_ether.h> + ++int interface_auto_up; ++int interface_do_message; ++ + void daemon_log(int loglevel, const char *fmt,...) + { + char buf[255]; +--- a/Port-linux/interface.h ++++ b/Port-linux/interface.h +@@ -23,8 +23,8 @@ + extern "C" { + #endif + +-int interface_auto_up; +-int interface_do_message; ++extern int interface_auto_up; ++extern int interface_do_message; + + typedef enum { IFSTATUS_UP, IFSTATUS_DOWN, IFSTATUS_ERR } interface_status_t; + |