tcl-snmptools: fix for -fno-common. ok naddy@
This commit is contained in:
parent
d20c075f11
commit
188433bf54
@ -1,11 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.7 2019/07/12 21:15:35 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.8 2021/02/02 19:35:13 matthieu Exp $
|
||||
|
||||
COMMENT = Tcl package that provides SNMP tools
|
||||
|
||||
V = 1.0
|
||||
|
||||
DISTNAME = tcl-snmptools-${V}
|
||||
REVISION = 1
|
||||
REVISION = 2
|
||||
CATEGORIES = net
|
||||
MAINTAINER = Matthieu Herrb <matthieu@openbsd.org>
|
||||
|
||||
|
16
net/tcl-snmptools/patches/patch-generic_snmptools_c
Normal file
16
net/tcl-snmptools/patches/patch-generic_snmptools_c
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-generic_snmptools_c,v 1.1 2021/02/02 19:35:13 matthieu Exp $
|
||||
|
||||
Fix for -fno-common
|
||||
|
||||
Index: generic/snmptools.c
|
||||
--- generic/snmptools.c.orig
|
||||
+++ generic/snmptools.c
|
||||
@@ -39,6 +39,8 @@ static int snmpCmd(ClientData clientData, Tcl_Interp *
|
||||
|
||||
static int sessionCmd(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]);
|
||||
|
||||
+Tcl_DString Result;
|
||||
+
|
||||
/*
|
||||
* Function Bodies
|
||||
*/
|
14
net/tcl-snmptools/patches/patch-generic_util_h
Normal file
14
net/tcl-snmptools/patches/patch-generic_util_h
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-generic_util_h,v 1.1 2021/02/02 19:35:13 matthieu Exp $
|
||||
|
||||
fix for -fno-common
|
||||
|
||||
--- generic/util.h.orig Tue Jan 29 10:09:38 2008
|
||||
+++ generic/util.h Tue Feb 2 07:43:51 2021
|
||||
@@ -48,7 +48,6 @@
|
||||
# define TMP "/tmp"
|
||||
#endif
|
||||
|
||||
-Tcl_DString Result;
|
||||
extern Tcl_DString Result;
|
||||
|
||||
int printres(const char *fmt, ...);
|
Loading…
Reference in New Issue
Block a user