File gcc47.patch of Package tripwire

Index: tripwire-2.4.2.2-src/src/cryptlib/integer.cpp
===================================================================
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"
openSUSE Build Service is sponsored by