qt5connectivity: fix for big endian platforms
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Wed, 11 Feb 2015 19:37:29 +0000 (19:37 +0000)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 14 Feb 2015 07:44:45 +0000 (08:44 +0100)
commit6496d6ccecd6b105fb4418dcb09fdc55e0a42d84
tree986941e55c32c7c8312747e99c43e59751a4c726
parent414d7e97a7359be87ef3b622c409e4200a8991ff
qt5connectivity: fix for big endian platforms

Add a patch to fix qt5connectivity for big endian platforms.

Building qtconnectivity fails for big endian platforms because the
bswap_16 function is not declared. This is the error message:

In file included from bluez/hcimanager_p.h:52:0,
 from bluez/hcimanager.cpp:35:
./bluez/bluez_data_p.h: In function 'quint16 bt_get_le16(const void*)':
./bluez/bluez_data_p.h:172:60: error: 'bswap_16' was not declared in
this scope
     return bswap_16(bt_get_unaligned((const quint16 *) ptr));

bswap_16 is defined in byteswap.h so we can include this file in order
to fix this problem.

This patch has been submitted upstream:

  https://bugreports.qt.io/browse/QTBUG-44421

Fixes:

  http://autobuild.buildroot.net/results/5b8/5b85c6819f94988abd8abfcdaad6226ceb2d790a/

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/qt5/qt5connectivity/0002-bluez_data_p.h-Add-missing-include-byteswap.h.patch [new file with mode: 0644]