freebsd-ports/cad/freecad/files/patch-src_Gui_Process.cpp
Thierry Thomas 15cbed5e11 FreeCAD is an OpenSource CAD/CAE, based on OpenCasCade, QT and Python.
It features some key concepts like macro recording, workbenches, ability to run
as a server and dynamically loadable application extensions and it is designed
to be platform independent.

Warning: FreeCAD is still in ALPHA state and not in shape for end user usage!

<http://juergen-riegel.net/FreeCAD/Docu/>

Suggested by:	Pedro F. Giffuni <giffunip (at) yahoo.com>
2007-05-26 19:26:10 +00:00

29 lines
1.2 KiB
C++

--- ./src/Gui/Process.cpp.orig Sat Feb 24 11:41:26 2007
+++ ./src/Gui/Process.cpp Sun Apr 22 00:20:17 2007
@@ -232,7 +232,7 @@
{
#ifdef FC_OS_WIN32
sprintf(szPath, "%s;%s", env["PATH"].latin1(), path.latin1());
-#elif defined (FC_OS_LINUX) || defined (FC_OS_CYGWIN)
+#elif defined (FC_OS_LINUX) || defined(FC_OS_FREEBSD) || defined(FC_OS_CYGWIN)
sprintf(szPath, "%s:%s", env["PATH"].latin1(), path.latin1());
#else
Base::Console().Warning("Not yet implemented!\n");
@@ -243,7 +243,7 @@
{
#ifdef FC_OS_WIN32
sprintf(szPath, "%s;%s", getenv("PATH"), path.latin1());
-#elif defined (FC_OS_LINUX) || defined (FC_OS_CYGWIN)
+#elif defined (FC_OS_LINUX) || defined(FC_OS_FREEBSD) || defined(FC_OS_CYGWIN)
sprintf(szPath, "%s:%s", getenv("PATH"), path.latin1());
#else
Base::Console().Warning("Not yet implemented!\n");
@@ -276,7 +276,7 @@
{
#ifdef FC_OS_WIN32
::SetEnvironmentVariable (it.key().latin1(), it.data().latin1());
-#elif defined (FC_OS_LINUX) || defined (FC_OS_CYGWIN)
+#elif defined (FC_OS_LINUX) || defined(FC_OS_FREEBSD) || defined(FC_OS_CYGWIN)
setenv(it.key().latin1(), it.data().latin1(), 1);
#else
Base::Console().Warning("Not yet implemented!\n");