freebsd-ports/editors/vigor/files/patch-ex__ex_tcl.c
Martin Wilke a0efd6ec9b - Fix build with newer Tcl/Tk 8.6
- Add LICENSE
- Add MAKE_JOBS_SAFE

PR:		179212
Submitted by:	Ports Fury
2013-06-04 08:23:11 +00:00

11 lines
364 B
C

--- ../ex/ex_tcl.c.orig
+++ ../ex/ex_tcl.c
@@ -71,7 +71,7 @@
Tcl_Eval(gp->tcl_interp, cmdp->argv[0]->bp) == TCL_OK)
return (0);
- msgq(sp, M_ERR, "Tcl: %s", ((Tcl_Interp *)gp->tcl_interp)->result);
+ msgq(sp, M_ERR, "Tcl: %s", Tcl_GetStringResult(gp->tcl_interp));
return (1);
#else
msgq(sp, M_ERR, "302|Vi was not loaded with a Tcl interpreter");