summaryrefslogtreecommitdiff
path: root/cad/freecad
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2007-08-08 21:21:30 +0000
committerThierry Thomas <thierry@FreeBSD.org>2007-08-08 21:21:30 +0000
commit7405f743a2201bd5669420feddd8a88677f6abc1 (patch)
tree5fadc0a7f7c0892677de123fac594322197d274e /cad/freecad
parent- Create share/applications at pre-install to allow desktop entry to install (diff)
Fix the build with Python 2.5.
Reported by: pointyhat via Pav Submitted by: perky
Notes
Notes: svn path=/head/; revision=197354
Diffstat (limited to 'cad/freecad')
-rw-r--r--cad/freecad/files/patch-src_Gui_Application.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/cad/freecad/files/patch-src_Gui_Application.cpp b/cad/freecad/files/patch-src_Gui_Application.cpp
new file mode 100644
index 000000000000..206937ea3acc
--- /dev/null
+++ b/cad/freecad/files/patch-src_Gui_Application.cpp
@@ -0,0 +1,11 @@
+--- src/Gui/Application.cpp.orig Sat Feb 24 11:48:30 2007
++++ src/Gui/Application.cpp Wed Aug 8 22:09:54 2007
+@@ -675,7 +675,7 @@
+ const char* start = App::Application::Config()["StartWorkbench"].c_str();
+
+ PyObject *key, *value;
+- int pos = 0;
++ Py_ssize_t pos = 0;
+ QStringList wb;
+ // insert all items
+ while (PyDict_Next(_pcWorkbenchDictionary, &pos, &key, &value)) {