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)
This commit is contained in:
Niclas Zeising 2020-08-22 13:57:23 +00:00
parent 6d32a82ea2
commit 531796cad1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=545766
3 changed files with 31 additions and 0 deletions

View File

@ -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[];

View File

@ -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);

View File

@ -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);