xref: /OK3568_Linux_fs/docs/cn/Linux/Wifibt/WIFIBT编程接口/0001-fix-bluezalsa-redefine.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 5016fd04d193640ad4bf908818f87c824550e00b Mon Sep 17 00:00:00 2001
2From: Yao Xiao <xiaoyao@rock-chips.com>
3Date: Fri, 17 Jun 2022 17:58:01 +0800
4Subject: [PATCH 1/1] fix_redefine
5
6---
7 src/bluez-a2dp.h  | 2 +-
8 src/bluez-iface.h | 4 ++--
9 2 files changed, 3 insertions(+), 3 deletions(-)
10
11diff --git a/src/bluez-a2dp.h b/src/bluez-a2dp.h
12index 67a7c5d..442366f 100644
13--- a/src/bluez-a2dp.h
14+++ b/src/bluez-a2dp.h
15@@ -55,6 +55,6 @@ struct bluez_a2dp_codec {
16 };
17
18 /* NULL-terminated list of available A2DP codecs */
19-const struct bluez_a2dp_codec **bluez_a2dp_codecs;
20+extern const struct bluez_a2dp_codec **bluez_a2dp_codecs;
21
22 #endif
23diff --git a/src/bluez-iface.h b/src/bluez-iface.h
24index 7d61638..a86a1bd 100644
25--- a/src/bluez-iface.h
26+++ b/src/bluez-iface.h
27@@ -13,7 +13,7 @@
28
29 #include <gio/gio.h>
30
31-const GDBusInterfaceInfo bluez_iface_endpoint;
32-const GDBusInterfaceInfo bluez_iface_profile;
33+extern const GDBusInterfaceInfo bluez_iface_endpoint;
34+extern const GDBusInterfaceInfo bluez_iface_profile;
35
36 #endif
37--
382.17.1
39
40