X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Fqt5%2Fqt5connectivity%2F0002-bluez_data_p.h-Add-missing-include-byteswap.h.patch;fp=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Fqt5%2Fqt5connectivity%2F0002-bluez_data_p.h-Add-missing-include-byteswap.h.patch;h=fc4be10553aa61b302797563a3ebf14c72219a21;hb=b0a0f15dfaa205161a7fcb20cf1b8cd4948c2ef3;hp=0000000000000000000000000000000000000000;hpb=c6ac3cd55ee2da956195eee393b0882105dfad4e;p=packages%2Ftrusty%2Fcirros-testvm.git diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/package/qt5/qt5connectivity/0002-bluez_data_p.h-Add-missing-include-byteswap.h.patch b/cirros-testvm/src-cirros/buildroot-2015.05/package/qt5/qt5connectivity/0002-bluez_data_p.h-Add-missing-include-byteswap.h.patch new file mode 100644 index 0000000..fc4be10 --- /dev/null +++ b/cirros-testvm/src-cirros/buildroot-2015.05/package/qt5/qt5connectivity/0002-bluez_data_p.h-Add-missing-include-byteswap.h.patch @@ -0,0 +1,46 @@ +bluez_data_p.h: Add missing "#include " + +This patch has been submitted upstream: + + https://bugreports.qt.io/browse/QTBUG-44421 + +Signed-off-by: Vicente Olivert Riera + +From 1e219701c61cdedf0e8cfda542ee2485f5fd059a Mon Sep 17 00:00:00 2001 +From: Vicente Olivert Riera +Date: Wed, 11 Feb 2015 18:11:05 +0000 +Subject: [PATCH] bluez_data_p.h: Add missing "#include " + +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. + +Signed-off-by: Vicente Olivert Riera +--- + src/bluetooth/bluez/bluez_data_p.h | 1 + + 1 files changed, 1 insertions(+), 0 deletions(-) + +diff --git a/src/bluetooth/bluez/bluez_data_p.h b/src/bluetooth/bluez/bluez_data_p.h +index 9d2d96b..64c90dd 100644 +--- a/src/bluetooth/bluez/bluez_data_p.h ++++ b/src/bluetooth/bluez/bluez_data_p.h +@@ -48,6 +48,7 @@ + #include + #include + #include ++#include + + #define BTPROTO_L2CAP 0 + #define BTPROTO_HCI 1 +-- +1.7.1 +