aboutsummaryrefslogtreecommitdiff
path: root/cad/freecad/files/patch-src_Main_MainPy.cpp
diff options
context:
space:
mode:
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);