aboutsummaryrefslogtreecommitdiff
path: root/cad/freecad/files/patch-src_Main_MainPy.cpp
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2007-05-26 19:26:10 +0000
committerThierry Thomas <thierry@FreeBSD.org>2007-05-26 19:26:10 +0000
commit15cbed5e11c43b326b5d7bd7ddb68861ab3f752d (patch)
tree5cbe0a2bdd39e7e29311c413f044c710db6922c6 /cad/freecad/files/patch-src_Main_MainPy.cpp
parentcf88fd19dae006b41f2e8f85d303d17d30221320 (diff)
downloadports-15cbed5e11c43b326b5d7bd7ddb68861ab3f752d.tar.gz
ports-15cbed5e11c43b326b5d7bd7ddb68861ab3f752d.zip
Notes
Diffstat (limited to 'cad/freecad/files/patch-src_Main_MainPy.cpp')
-rw-r--r--cad/freecad/files/patch-src_Main_MainPy.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/cad/freecad/files/patch-src_Main_MainPy.cpp b/cad/freecad/files/patch-src_Main_MainPy.cpp
new file mode 100644
index 000000000000..4fe18a8aa36f
--- /dev/null
+++ b/cad/freecad/files/patch-src_Main_MainPy.cpp
@@ -0,0 +1,29 @@
+--- ./src/Main/MainPy.cpp.orig Mon Feb 26 10:36:38 2007
++++ ./src/Main/MainPy.cpp Sun Apr 22 00:25:41 2007
+@@ -28,7 +28,7 @@
+ # include <sstream>
+ #endif
+
+-#ifdef FC_LINUX
++#if defined (FC_OS_LINUX) || defined(FC_OS_FREEBSD)
+ # include <unistd.h>
+ #endif
+
+@@ -71,7 +71,7 @@
+
+ return TRUE;
+ }
+-#elif defined(FC_OS_LINUX)
++#elif defined (FC_OS_LINUX) || defined(FC_OS_FREEBSD)
+ # ifndef GNU_SOURCE
+ # define GNU_SOURCE
+ # endif
+@@ -109,7 +109,7 @@
+
+ #if defined(FC_OS_WIN32)
+ strcpy(argv[0],App::Application::Config()["HomePath"].c_str());
+-#elif defined(FC_OS_LINUX)
++#elif defined (FC_OS_LINUX) || defined(FC_OS_FREEBSD)
+ // get whole path of the library
+ Dl_info info;
+ int ret = dladdr((void*)initFreeCAD, &info);