summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-06-13 23:23:36 +0100
committerCarl Hetherington <cth@carlh.net>2013-06-13 23:23:36 +0100
commit8af74cd10c9568513aec0326231f5228b4782adf (patch)
treed62372db8fe27f567a6a7515f8033d60c8315a04 /src/lib
parentee58877757bdcd25557739ee88d7986d0a8b7e7e (diff)
Try to fix build.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/cross.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/cross.cc b/src/lib/cross.cc
index 1f1be907f..b654be6df 100644
--- a/src/lib/cross.cc
+++ b/src/lib/cross.cc
@@ -17,6 +17,8 @@
*/
+#include <fstream>
+#include <boost/algorithm/string.hpp>
#include "cross.h"
#ifdef DVDOMATIC_POSIX
#include <unistd.h>
@@ -50,16 +52,16 @@ cpu_info ()
info.second = 0;
#ifdef DVDOMATIC_LINUX
- ifstream f (N_("/proc/cpuinfo"));
+ ifstream f ("/proc/cpuinfo");
while (f.good ()) {
string l;
getline (f, l);
- if (boost::algorithm::starts_with (l, N_("model name"))) {
+ if (boost::algorithm::starts_with (l, "model name")) {
string::size_type const c = l.find (':');
if (c != string::npos) {
info.first = l.substr (c + 2);
}
- } else if (boost::algorithm::starts_with (l, N_("processor"))) {
+ } else if (boost::algorithm::starts_with (l, "processor")) {
++info.second;
}
}