fix -fno-common build

This commit is contained in:
jsg 2021-02-10 07:15:17 +00:00
parent ccca29dd3f
commit 58843875ca
2 changed files with 17 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.77 2020/03/20 16:44:26 naddy Exp $
# $OpenBSD: Makefile,v 1.78 2021/02/10 07:15:17 jsg Exp $
COMMENT= (E)nhanced (P)rogrammable (I)RC-II (C)lient
VERSION= 2.10.5
REVISION= 1
REVISION= 2
HELP_DATE= 20050315
DISTNAME= epic4-${VERSION}
CATEGORIES= net

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-include_irc_h,v 1.1 2021/02/10 07:15:17 jsg Exp $
fix -fno-common build
Index: include/irc.h
--- include/irc.h.orig
+++ include/irc.h
@@ -166,6 +166,6 @@ const char * current_loader (void); /* XXX command.c
char * current_package (void); /* XXX command.c */
/* keep track of signals for scripted events */
-volatile int signals_caught[NSIG];
+extern volatile int signals_caught[NSIG];
#endif /* __irc_h */