diff options
author | kh1 <qt-info@nokia.com> | 2011-05-02 11:43:01 +0200 |
---|---|---|
committer | kh1 <qt-info@nokia.com> | 2011-05-02 11:43:01 +0200 |
commit | c4ec44039c0d08464b340808b8d1c49b78bfe980 (patch) | |
tree | 2000f9e8149ba0ba54864a8fbf16c3c9328352b6 /installerbuilder/common/binaryformat.cpp | |
parent | 8ce0d98314a9c582c43e46f5d8590eabb3cb3aac (diff) |
Fix build on OSX.
Diffstat (limited to 'installerbuilder/common/binaryformat.cpp')
-rw-r--r-- | installerbuilder/common/binaryformat.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/installerbuilder/common/binaryformat.cpp b/installerbuilder/common/binaryformat.cpp index 3282df390..8bc3e2018 100644 --- a/installerbuilder/common/binaryformat.cpp +++ b/installerbuilder/common/binaryformat.cpp @@ -45,6 +45,8 @@ #include <QtCore/QResource> #include <QtCore/QTemporaryFile> +#include <errno.h> + using namespace QInstaller; using namespace QInstallerCreator; @@ -566,7 +568,7 @@ void Component::writeData(QIODevice *out, qint64 offset) const qint64 start = out->pos() + offset; // Why 16 + 16? This is 24, not 32??? - const int foo = 3 * sizeof qint64; + const int foo = 3 * sizeof(qint64); // add 16 + 16 + number of name characters for each archive (the size of the table) foreach (const QSharedPointer<Archive> &archive, m_archives) start += foo + archive->name().count(); |