svn commit: r546714 - head/math/scilab/files

Max Brazhnikov makc at FreeBSD.org
Fri Aug 28 10:04:25 UTC 2020


Author: makc
Date: Fri Aug 28 10:04:24 2020
New Revision: 546714
URL: https://svnweb.freebsd.org/changeset/ports/546714

Log:
  math/scilab: fix build with -fno-common

Added:
  head/math/scilab/files/patch-fnocommon   (contents, props changed)

Added: head/math/scilab/files/patch-fnocommon
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/scilab/files/patch-fnocommon	Fri Aug 28 10:04:24 2020	(r546714)
@@ -0,0 +1,30 @@
+--- modules/tclsci/src/c/TCL_Command.c.orig	2020-02-25 10:00:14 UTC
++++ modules/tclsci/src/c/TCL_Command.c
+@@ -38,6 +38,12 @@ int			TclInterpReturn;
+ // Global Tcl Return Result.
+ char *			TclInterpResult;
+ 
++/* The tclLoop thread Id
++in order to wait it ends when closing Scilab */
++__threadId TclThread;
++__threadSignal InterpReady;
++__threadSignalLock InterpReadyLock;
++
+ // Single execution
+ __threadLock		singleExecutionLock;
+ 
+--- modules/tclsci/src/c/TCL_Command.h.orig	2020-02-25 10:00:14 UTC
++++ modules/tclsci/src/c/TCL_Command.h
+@@ -85,9 +85,9 @@ char		*getTclCommandResult(void);
+ 
+ /* The tclLoop thread Id
+ in order to wait it ends when closing Scilab */
+-__threadId TclThread;
++extern __threadId TclThread;
+ 
+-__threadSignal InterpReady;
+-__threadSignalLock InterpReadyLock;
++extern __threadSignal InterpReady;
++extern __threadSignalLock InterpReadyLock;
+ 
+ #endif /* !__TCL_COMMAND_H__ */


More information about the svn-ports-head mailing list