Closed
Bug 1123077
Opened 9 years ago
Closed 9 years ago
[Flatfish] build broken due to missing defines for Bluetooth
Categories
(Firefox OS Graveyard :: Bluetooth, defect)
Tracking
(firefox38 fixed)
RESOLVED
FIXED
2.2 S5 (6feb)
Tracking | Status | |
---|---|---|
firefox38 | --- | fixed |
People
(Reporter: gerard-majax, Assigned: tzimmermann)
References
Details
Attachments
(1 file)
2.09 KB,
patch
|
shawnjohnjr
:
review+
|
Details | Diff | Splinter Review |
In file included from ../../../gecko/dom/bluetooth/bluedroid/BluetoothA2dpHALInterface.cpp:8:0: ../../../gecko/dom/bluetooth/bluedroid/BluetoothHALHelpers.h: In function 'nsresult mozilla::dom::bluetooth::Convert(bt_property_type_t, mozilla::dom::bluetooth::BluetoothPropertyType&)': ../../../gecko/dom/bluetooth/bluedroid/BluetoothHALHelpers.h:201:6: error: 'BT_PROPERTY_REMOTE_VERSION_INFO' was not declared in this scope CONVERT(BT_PROPERTY_REMOTE_VERSION_INFO,PROPERTY_REMOTE_VERSION_INFO) ^ ../../../gecko/dom/bluetooth/bluedroid/BluetoothHALHelpers.h:202:3: error: name used in a GNU-style designated initializer for an array As far as I can say, the value BT_PROPERTY_REMOTE_VERSION_INFO do not exists in the <hardware/bluetooth.h> file used by Flatfish device.
Flags: needinfo?(tzimmermann)
Assignee | ||
Comment 1•9 years ago
|
||
I'll fix that, thanks for reporting. Flatfish is painful to work with. We had multiple such bugs.
Assignee: nobody → tzimmermann
Status: NEW → ASSIGNED
Flags: needinfo?(tzimmermann)
Assignee | ||
Updated•9 years ago
|
Component: DOM: Device Interfaces → Bluetooth
Product: Core → Firefox OS
Hardware: ARM → All
This should fix the build break. BT_PROPERTY_REMOTE_VERSION_INFO is not defined in Android 4.2 (API level 17) but it appears in Android 4.3 (API level 18). diff --git a/dom/bluetooth/bluedroid/BluetoothHALHelpers.h b/dom/bluetooth/bluedroid/BluetoothHALHelpers.h index 4827f7f..b87e35e 100644 --- a/dom/bluetooth/bluedroid/BluetoothHALHelpers.h +++ b/dom/bluetooth/bluedroid/BluetoothHALHelpers.h @@ -198,7 +198,9 @@ Convert(bt_property_type_t aIn, BluetoothPropertyType& aOut) PROPERTY_ADAPTER_DISCOVERY_TIMEOUT), CONVERT(BT_PROPERTY_REMOTE_FRIENDLY_NAME, PROPERTY_REMOTE_FRIENDLY_NAME), CONVERT(BT_PROPERTY_REMOTE_RSSI, PROPERTY_REMOTE_RSSI), +#if ANDROID_VERSION >= 18 CONVERT(BT_PROPERTY_REMOTE_VERSION_INFO,PROPERTY_REMOTE_VERSION_INFO) +#endif };
Assignee | ||
Comment 6•9 years ago
|
||
Attachment #8558458 -
Flags: review?(shuang)
Attachment #8558458 -
Flags: review?(shuang) → review+
Comment 7•9 years ago
|
||
Hi, trailing comma in enum might not be supported on old compiler, but trailing comma in array should be allowed at all time, right?
Assignee | ||
Comment 8•9 years ago
|
||
Thank you! https://hg.mozilla.org/integration/b2g-inbound/rev/4d3548b9bceb https://treeherder.mozilla.org/#/jobs?repo=b2g-inbound&revision=4d3548b9bceb
Comment 9•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/4d3548b9bceb
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox38:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S5 (6feb)
You need to log in
before you can comment on or make changes to this bug.
Description
•