fix linux build

svn path=/trunk/; revision=28642
This commit is contained in:
Christoph von Wittich 2007-08-28 23:47:54 +00:00
parent 247523e709
commit 72d3e9bd7e
2 changed files with 6 additions and 1 deletions

View file

@ -278,6 +278,7 @@ namespace Sysreg_
#ifdef __LINUX__
cerr << "Error: reading from pipes is not supported with linux hosts - use stdio" << endl;
return false;
}
#else
pipe = pipe.substr(pos + 5, pipe.size() - pos - 5);
pos = pipe.find(_T(" "));
@ -816,7 +817,11 @@ namespace Sysreg_
if (!m_DataSource->readSource (vect))
{
#ifndef __LINUX__
cerr << "No data read" << GetLastError() << endl;
#else
cerr << "No data read" << endl;
#endif
continue;
}
if (write_log)

View file

@ -28,7 +28,7 @@
#define _tremove remove
#define _ttoi atoi
#define _T(x) x
#define _tfopen _open
#define _tfopen fopen
#define _tcsstr strstr
#define _fgetts fgets
#define _tgetenv getenv