aboutsummaryrefslogtreecommitdiff
path: root/irc
diff options
context:
space:
mode:
authorNiclas Zeising <zeising@FreeBSD.org>2020-08-22 13:57:23 +0000
committerNiclas Zeising <zeising@FreeBSD.org>2020-08-22 13:57:23 +0000
commit531796cad1fcfef219c9b260d206191f58e1810e (patch)
treeaeba6fc846591f44e270674bfd1b58818641cda1 /irc
parent6d32a82ea2b70fe8c37f6f2a1b98a7799e97c483 (diff)
downloadports-531796cad1fcfef219c9b260d206191f58e1810e.tar.gz
ports-531796cad1fcfef219c9b260d206191f58e1810e.zip
irc/bitchx: Fix build with -fno-common
Fix the build of irc/bitchx with -fno-common, which is the default with llvm 11. Patches originally from the fedora project. MFH: 2020Q3 (implicit, -fno-common fixes, ok by joenum)
Notes
Notes: svn path=/head/; revision=545766
Diffstat (limited to 'irc')
-rw-r--r--irc/bitchx/files/patch-source_commands.c10
-rw-r--r--irc/bitchx/files/patch-source_modules.c11
-rw-r--r--irc/bitchx/files/patch-source_numbers.c10
3 files changed, 31 insertions, 0 deletions
diff --git a/irc/bitchx/files/patch-source_commands.c b/irc/bitchx/files/patch-source_commands.c
new file mode 100644
index 000000000000..e3cc35081432
--- /dev/null
+++ b/irc/bitchx/files/patch-source_commands.c
@@ -0,0 +1,10 @@
+--- source/commands.c.orig 2014-11-04 10:54:23 UTC
++++ source/commands.c
+@@ -118,7 +118,6 @@ extern int doing_notice;
+
+ static void oper_password_received (char *, char *);
+
+-int no_hook_notify = 0;
+ int load_depth = -1;
+
+ extern char cx_function[];
diff --git a/irc/bitchx/files/patch-source_modules.c b/irc/bitchx/files/patch-source_modules.c
new file mode 100644
index 000000000000..a867c6d9748d
--- /dev/null
+++ b/irc/bitchx/files/patch-source_modules.c
@@ -0,0 +1,11 @@
+--- source/modules.c.orig 2010-06-26 08:18:34 UTC
++++ source/modules.c
+@@ -83,7 +83,7 @@ extern int (*dcc_output_func) (int, int, char *, int);
+ extern int (*dcc_input_func) (int, int, char *, int, int);
+ extern int (*dcc_close_func) (int, unsigned long, int);
+
+-int (*serv_open_func) (int, unsigned long, int);
++extern int (*serv_open_func) (int, unsigned long, int);
+ extern int (*serv_output_func) (int, int, char *, int);
+ extern int (*serv_input_func) (int, char *, int, int, int);
+ extern int (*serv_close_func) (int, unsigned long, int);
diff --git a/irc/bitchx/files/patch-source_numbers.c b/irc/bitchx/files/patch-source_numbers.c
new file mode 100644
index 000000000000..5bbb5760e4d0
--- /dev/null
+++ b/irc/bitchx/files/patch-source_numbers.c
@@ -0,0 +1,10 @@
+--- source/numbers.c.orig 2014-11-14 10:34:50 UTC
++++ source/numbers.c
+@@ -66,7 +66,6 @@ void show_server_map (void);
+ int stats_k_grep (char **);
+ void who_handlekill (char *, char *, char *);
+ void handle_tracekill (int, char *, char *, char *);
+-int no_hook_notify;
+ extern AJoinList *ajoin_list;
+ void remove_from_server_list (int);
+