aboutsummaryrefslogtreecommitdiff
path: root/graphics/LDView/LDView_gcc47.patch
diff options
context:
space:
mode:
authorNiels Horn <niels.horn@gmail.com>2012-09-13 16:22:49 -0300
committerNiels Horn <niels.horn@slackbuilds.org>2012-09-13 16:22:49 -0300
commitf11d88063783615fb8d4097f6bffb1afa84ee800 (patch)
treeeeb4a1d7887a6b65c8ed44fe5039005e25f588a8 /graphics/LDView/LDView_gcc47.patch
parent4032bd1ac5720ffb7f4cad4ca779ce334481f895 (diff)
graphics/LDView: Fixed to build against gcc-4.7
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'graphics/LDView/LDView_gcc47.patch')
-rw-r--r--graphics/LDView/LDView_gcc47.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/graphics/LDView/LDView_gcc47.patch b/graphics/LDView/LDView_gcc47.patch
new file mode 100644
index 0000000000000..ae1c7c2810dbc
--- /dev/null
+++ b/graphics/LDView/LDView_gcc47.patch
@@ -0,0 +1,23 @@
+--- LDView-4.1/TCFoundation/TCArray.h 2008-05-18 18:16:21.000000000 -0300
++++ LDView-4.1_patched/TCFoundation/TCArray.h 2012-09-13 14:32:40.000000000 -0300
+@@ -2,6 +2,7 @@
+ #define __TCARRAY_H__
+
+ #include <TCFoundation/TCObject.h>
++#include <TCFoundation/mystring.h>
+
+ typedef int (*TCArraySortFunction)(const void*, const void*);
+
+--- LDView-4.1/TCFoundation/mystring.h 2009-11-17 00:45:34.000000000 -0200
++++ LDView-4.1_patched/TCFoundation/mystring.h 2012-09-13 14:33:51.000000000 -0300
+@@ -13,6 +13,10 @@
+ #include <Qt/qstring.h>
+ #endif // _QT
+
++#ifndef WIN32
++#include <unistd.h>
++#endif
++
+ #ifdef _OSMESA
+ #include <stdarg.h>
+ #endif // _OSMESA