diff options
author | Bernhard Rosenkraenzer <bero@arklinux.ch> | 2009-09-01 08:40:49 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-09-01 08:44:33 (GMT) |
commit | f39ead322f7b2e485cc6767b609eb5bc8a10b0ea (patch) | |
tree | c9c90e82d7c776a81cd92ff5f28cd541dbe9860a /src/corelib/tools | |
parent | aa71e8492b02be079312d39033a54209fb80f9aa (diff) | |
download | Qt-f39ead322f7b2e485cc6767b609eb5bc8a10b0ea.zip Qt-f39ead322f7b2e485cc6767b609eb5bc8a10b0ea.tar.gz Qt-f39ead322f7b2e485cc6767b609eb5bc8a10b0ea.tar.bz2 |
qlist.h uses memcpy() without including <string.h> or <cstring>
Attempting to make use of the inlined QList::node_copy without
including <string.h> or <cstring> with gcc 4.4 results in (e.g.)
/usr/lib64/qt4/include/QtCore/qlist.h: In member function "void QList<T>::node_copy(QList<T>::Node*, QList<T>::Node*, QList<T>::Node*) [with T = net::Port]":
/usr/lib64/qt4/include/QtCore/qlist.h:600: instantiated from "void QList<T>::detach_helper() [with T = net::Port]"
/usr/lib64/qt4/include/QtCore/qlist.h:121: instantiated from "void QList<T>::detach() [with T = net::Port]"
/usr/lib64/qt4/include/QtCore/qlist.h:462: instantiated from "void QList<T>::append(const T&) [with T = net::Port]"
/usr/src/ark/BUILD/kdenetwork/kget/transfer-plugins/bittorrent/libbtcore/net/portlist.cpp:54: instantiated from here
/usr/lib64/qt4/include/QtCore/qlist.h:388: error: "memcpy" was not declared in this scope
Task-number: reported, but not yet assigned a number
Merge-request: 1388
Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
Diffstat (limited to 'src/corelib/tools')
-rw-r--r-- | src/corelib/tools/qlist.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/tools/qlist.h b/src/corelib/tools/qlist.h index ba8ae56..c2bdbee 100644 --- a/src/corelib/tools/qlist.h +++ b/src/corelib/tools/qlist.h @@ -52,6 +52,7 @@ #endif #include <new> +#include <string.h> QT_BEGIN_HEADER |