Author: cwittich Date: Wed Aug 29 03:47:54 2007 New Revision: 28642
URL: http://svn.reactos.org/svn/reactos?rev=28642&view=rev Log: fix linux build
Modified: trunk/reactos/tools/sysreg/rosboot_test.cpp trunk/reactos/tools/sysreg/user_types.h
Modified: trunk/reactos/tools/sysreg/rosboot_test.cpp URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/sysreg/rosboot_test.c... ============================================================================== --- trunk/reactos/tools/sysreg/rosboot_test.cpp (original) +++ trunk/reactos/tools/sysreg/rosboot_test.cpp Wed Aug 29 03:47:54 2007 @@ -278,6 +278,7 @@ #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 @@
if (!m_DataSource->readSource (vect)) { +#ifndef __LINUX__ cerr << "No data read" << GetLastError() << endl; +#else + cerr << "No data read" << endl; +#endif continue; } if (write_log)
Modified: trunk/reactos/tools/sysreg/user_types.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/sysreg/user_types.h?r... ============================================================================== --- trunk/reactos/tools/sysreg/user_types.h (original) +++ trunk/reactos/tools/sysreg/user_types.h Wed Aug 29 03:47:54 2007 @@ -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