diff --git a/src/corelib/kernel/qsystemerror.cpp b/src/corelib/kernel/qsystemerror.cpp index 3edc7f95f8..4be4874cf1 100644 --- a/src/corelib/kernel/qsystemerror.cpp +++ b/src/corelib/kernel/qsystemerror.cpp @@ -46,6 +46,9 @@ #ifdef Q_OS_WIN # include #endif +#ifndef QT_BOOTSTRAPPED +# include +#endif QT_BEGIN_NAMESPACE @@ -127,9 +130,11 @@ static QString standardLibraryErrorString(int errorCode) break; } } if (s) { - // ######## this breaks moc build currently - // ret = QCoreApplication::translate("QIODevice", s); +#ifndef QT_BOOTSTRAPPED + ret = QCoreApplication::translate("QIODevice", s); +#else ret = QString::fromLatin1(s); +#endif } return ret.trimmed(); }