summaryrefslogtreecommitdiffstats
path: root/system/coolkey/gcc-4.3.patch
diff options
context:
space:
mode:
author Andy Bailey <bailey@akamai.com>2010-05-13 01:00:43 +0200
committer Robby Workman <rworkman@slackbuilds.org>2010-05-13 01:00:43 +0200
commitc52ae73dea9c2717364e6847b5707c60e0cef7c3 (patch)
treefdb3e3d4cbf402cf85decb6da8b717a44559e7fb /system/coolkey/gcc-4.3.patch
parentb072cc799b022c372b67b18c3890caa89e84342c (diff)
downloadslackbuilds-c52ae73dea9c2717364e6847b5707c60e0cef7c3.tar.gz
slackbuilds-c52ae73dea9c2717364e6847b5707c60e0cef7c3.tar.xz
system/coolkey: Added to 13.0 repository
Diffstat (limited to 'system/coolkey/gcc-4.3.patch')
-rw-r--r--system/coolkey/gcc-4.3.patch95
1 files changed, 95 insertions, 0 deletions
diff --git a/system/coolkey/gcc-4.3.patch b/system/coolkey/gcc-4.3.patch
new file mode 100644
index 0000000000..349c074a01
--- /dev/null
+++ b/system/coolkey/gcc-4.3.patch
@@ -0,0 +1,95 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_coolkey_cpp.dpatch by <rousseau@imac.maison.bogus>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Closes: #455658 FTBFS with GCC 4.3: #define redefined
+
+@DPATCH@
+diff -urNad coolkey-1.1.0~/src/coolkey/coolkey.cpp coolkey-1.1.0/src/coolkey/coolkey.cpp
+--- coolkey-1.1.0~/src/coolkey/coolkey.cpp 2007-02-14 20:54:01.000000000 +0100
++++ coolkey-1.1.0/src/coolkey/coolkey.cpp 2008-01-06 14:12:35.000000000 +0100
+@@ -34,7 +34,9 @@
+ #include "cky_base.h"
+ #include "params.h"
+
++#ifndef NULL
+ #define NULL 0
++#endif
+
+ /* static module data -------------------------------- */
+
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_log_cpp.dpatch by <rousseau@imac.maison.bogus>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: fix for g++ 4.3
+
+@DPATCH@
+diff -urNad coolkey-1.1.0~/src/coolkey/log.cpp coolkey-1.1.0/src/coolkey/log.cpp
+--- coolkey-1.1.0~/src/coolkey/log.cpp 2007-02-14 20:54:01.000000000 +0100
++++ coolkey-1.1.0/src/coolkey/log.cpp 2008-01-06 14:18:11.000000000 +0100
+@@ -17,6 +17,8 @@
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * ***** END COPYRIGHT BLOCK *****/
+
++#include <stdlib.h>
++#include <string.h>
+ #include <string>
+ #include "mypkcs11.h"
+ #include <assert.h>
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 03_machdep_cpp.dpatch by <rousseau@imac.maison.bogus>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: fix for g++ 4.3
+
+@DPATCH@
+diff -urNad coolkey-1.1.0~/src/coolkey/machdep.cpp coolkey-1.1.0/src/coolkey/machdep.cpp
+--- coolkey-1.1.0~/src/coolkey/machdep.cpp 2007-02-14 01:46:28.000000000 +0100
++++ coolkey-1.1.0/src/coolkey/machdep.cpp 2008-01-06 14:19:04.000000000 +0100
+@@ -17,6 +17,8 @@
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * ***** END COPYRIGHT BLOCK *****/
+
++#include <stdlib.h>
++#include <string.h>
+ #include "machdep.h"
+ #include "mypkcs11.h"
+ #include "PKCS11Exception.h"
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 04_object_cpp.dpatch by <rousseau@imac.maison.bogus>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: fix for g++ 4.3
+
+@DPATCH@
+diff -urNad coolkey-1.1.0~/src/coolkey/object.cpp coolkey-1.1.0/src/coolkey/object.cpp
+--- coolkey-1.1.0~/src/coolkey/object.cpp 2007-02-09 19:53:21.000000000 +0100
++++ coolkey-1.1.0/src/coolkey/object.cpp 2008-01-06 14:22:42.000000000 +0100
+@@ -17,6 +17,7 @@
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * ***** END COPYRIGHT BLOCK *****/
+
++#include <string.h>
+ #include "mypkcs11.h"
+ #include "PKCS11Exception.h"
+ #include "object.h"
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 05_slot_cpp.dpatch by <rousseau@imac.maison.bogus>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: fix for g++ 4.3
+
+@DPATCH@
+diff -urNad coolkey-1.1.0.obsolete.0.590099710113467~/src/coolkey/slot.cpp coolkey-1.1.0.obsolete.0.590099710113467/src/coolkey/slot.cpp
+--- coolkey-1.1.0.obsolete.0.590099710113467~/src/coolkey/slot.cpp 2008-01-06 14:27:32.000000000 +0100
++++ coolkey-1.1.0.obsolete.0.590099710113467/src/coolkey/slot.cpp 2008-01-06 14:27:58.000000000 +0100
+@@ -33,7 +33,7 @@
+
+ #define MIN(x, y) ((x) < (y) ? (x) : (y))
+
+-using std::auto_ptr;
++//using std::auto_ptr;
+
+
+ #ifdef DEBUG