qlist.h uses memcpy() without including <string.h> or <cstring>
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 <0ed1648d92ca0373297a182b1dba1b974ad10d88@nokia.com>

igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,radekp/qt,radekp/qt,radekp/qt,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,radekp/qt,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,radekp/qt,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,radekp/qt,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,radekp/qt,igor-sfdc/qt-wk,radekp/qt,igor-sfdc/qt-wk,radekp/qt,radekp/qt,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt