summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/tripwire/files/tripwire-2.4.2.2-gcc-4.7.patch')
-rw-r--r--app-admin/tripwire/files/tripwire-2.4.2.2-gcc-4.7.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/app-admin/tripwire/files/tripwire-2.4.2.2-gcc-4.7.patch b/app-admin/tripwire/files/tripwire-2.4.2.2-gcc-4.7.patch
new file mode 100644
index 000000000000..e8d35fb2ae39
--- /dev/null
+++ b/app-admin/tripwire/files/tripwire-2.4.2.2-gcc-4.7.patch
@@ -0,0 +1,25 @@
+diff -Nur a/src/cryptlib/algebra.h b/src/cryptlib/algebra.h
+--- a/src/cryptlib/algebra.h 2011-11-21 16:06:56.000000000 +0000
++++ b/src/cryptlib/algebra.h 2012-06-19 14:13:13.930019454 +0000
+@@ -273,7 +273,7 @@
+ Element g[3]={b, a};
+ unsigned int i0=0, i1=1, i2=2;
+
+- while (!Equal(g[i1], this->Zero()))
++ while (!this->Equal(g[i1], this->Zero()))
+ {
+ g[i2] = Mod(g[i0], g[i1]);
+ unsigned int t = i0; i0 = i1; i1 = i2; i2 = t;
+diff -Nur a/src/twadmin/twadmincl.cpp b/src/twadmin/twadmincl.cpp
+--- a/src/twadmin/twadmincl.cpp 2011-11-21 16:06:56.000000000 +0000
++++ b/src/twadmin/twadmincl.cpp 2012-06-19 14:13:40.270019532 +0000
+@@ -33,6 +33,9 @@
+ // twadmincl.cpp -- command line parsing for twadmin
+ //
+
++
++#include <unistd.h>
++
+ #include "stdtwadmin.h"
+
+ #include "twadmincl.h"