1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

math/scilab: fix build with -fno-common

This commit is contained in:
Max Brazhnikov 2020-08-28 10:04:24 +00:00
parent ccb27bc9a4
commit 7dbd093d10
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=546714

View File

@ -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__ */