File build-gcc4.7.diff of Package mestatus

diff -U 3 -H -d -r -N -- MEStatus-5.0.0.30.orig/src/common/AMTStatus/AMTStatusColl.cpp MEStatus-5.0.0.30/src/common/AMTStatus/AMTStatusColl.cpp
--- MEStatus-5.0.0.30.orig/src/common/AMTStatus/AMTStatusColl.cpp	2008-07-08 13:50:29.000000000 +0300
+++ MEStatus-5.0.0.30/src/common/AMTStatus/AMTStatusColl.cpp	2014-03-23 02:51:50.274793005 +0300
@@ -36,6 +36,7 @@
 #include <memory>
 #include <cstring>
 #include <fstream>
+#include <unistd.h>
 
 const std::string AMTStatusColl::defaultLastAMTCollStateFileName = IATSHAREDDATADIR "/iAMTCollState.dat";
 
diff -U 3 -H -d -r -N -- MEStatus-5.0.0.30.orig/src/common/ATVersion.cpp MEStatus-5.0.0.30/src/common/ATVersion.cpp
--- MEStatus-5.0.0.30.orig/src/common/ATVersion.cpp	2008-07-08 13:50:29.000000000 +0300
+++ MEStatus-5.0.0.30/src/common/ATVersion.cpp	2014-03-23 02:41:17.674741361 +0300
@@ -40,6 +40,7 @@
 #include <cerrno>
 #include <fstream>
 #include <dirent.h>
+#include <unistd.h>
 
 #define AT_VERSION_ARGUMENT "--version"
 #define AT_VERSION_MAXSIZE 40
diff -U 3 -H -d -r -N -- MEStatus-5.0.0.30.orig/src/common/TPMStatus/TPMStatusColl.cpp MEStatus-5.0.0.30/src/common/TPMStatus/TPMStatusColl.cpp
--- MEStatus-5.0.0.30.orig/src/common/TPMStatus/TPMStatusColl.cpp	2008-07-08 13:50:30.000000000 +0300
+++ MEStatus-5.0.0.30/src/common/TPMStatus/TPMStatusColl.cpp	2014-03-23 03:00:27.108835199 +0300
@@ -37,6 +37,7 @@
 #include <memory>
 #include <cstring>
 #include <fstream>
+#include <unistd.h>
 
 const std::string TPMStatusColl::defaultLastTPMCollStateFileName = IATSHAREDDATADIR "/iTPMCollState.dat";
openSUSE Build Service is sponsored by