package/bluez5_utils: fix compiler error for gcc 12.2.0
Keep the bluez5_utils-headers version and patches in sync with bluez5_utils Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
This commit is contained in:
+38
@@ -0,0 +1,38 @@
|
|||||||
|
From 5f74b142f1bcb8003d6e84f71c7b958818756f3c Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andy Hu <andy.hu@starfivetech.com>
|
||||||
|
Date: Fri, 19 May 2023 23:30:56 +0800
|
||||||
|
Subject: [PATCH] bluez5_utils: fix the compiler issue for gcc 12.2.0
|
||||||
|
|
||||||
|
fix the conflicting types for 'pause'; have '_Bool(void *)'
|
||||||
|
which had defined in /usr/include/unistd.h is 'int pause (void)'
|
||||||
|
|
||||||
|
Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
|
||||||
|
---
|
||||||
|
profiles/audio/media.c | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/profiles/audio/media.c b/profiles/audio/media.c
|
||||||
|
index 02bf82a..0892532 100644
|
||||||
|
--- a/profiles/audio/media.c
|
||||||
|
+++ b/profiles/audio/media.c
|
||||||
|
@@ -1280,7 +1280,7 @@ static bool stop(void *user_data)
|
||||||
|
return media_player_send(mp, "Stop");
|
||||||
|
}
|
||||||
|
|
||||||
|
-static bool pause(void *user_data)
|
||||||
|
+static bool func_pause(void *user_data)
|
||||||
|
{
|
||||||
|
struct media_player *mp = user_data;
|
||||||
|
|
||||||
|
@@ -1330,7 +1330,7 @@ static struct avrcp_player_cb player_cb = {
|
||||||
|
.set_volume = set_volume,
|
||||||
|
.play = play,
|
||||||
|
.stop = stop,
|
||||||
|
- .pause = pause,
|
||||||
|
+ .pause = func_pause,
|
||||||
|
.next = next,
|
||||||
|
.previous = previous,
|
||||||
|
};
|
||||||
|
--
|
||||||
|
2.34.1
|
||||||
|
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
# Keep the version and patches in sync with bluez5_utils
|
# Keep the version and patches in sync with bluez5_utils
|
||||||
BLUEZ5_UTILS_HEADERS_VERSION = 5.62
|
BLUEZ5_UTILS_HEADERS_VERSION = 5.55
|
||||||
BLUEZ5_UTILS_HEADERS_SOURCE = bluez-$(BLUEZ5_UTILS_VERSION).tar.xz
|
BLUEZ5_UTILS_HEADERS_SOURCE = bluez-$(BLUEZ5_UTILS_VERSION).tar.xz
|
||||||
BLUEZ5_UTILS_HEADERS_SITE = $(BR2_KERNEL_MIRROR)/linux/bluetooth
|
BLUEZ5_UTILS_HEADERS_SITE = $(BR2_KERNEL_MIRROR)/linux/bluetooth
|
||||||
BLUEZ5_UTILS_HEADERS_DL_SUBDIR = bluez5_utils
|
BLUEZ5_UTILS_HEADERS_DL_SUBDIR = bluez5_utils
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
From 5f74b142f1bcb8003d6e84f71c7b958818756f3c Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andy Hu <andy.hu@starfivetech.com>
|
||||||
|
Date: Fri, 19 May 2023 23:30:56 +0800
|
||||||
|
Subject: [PATCH] bluez5_utils: fix the compiler issue for gcc 12.2.0
|
||||||
|
|
||||||
|
fix the conflicting types for 'pause'; have '_Bool(void *)'
|
||||||
|
which had defined in /usr/include/unistd.h is 'int pause (void)'
|
||||||
|
|
||||||
|
Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
|
||||||
|
---
|
||||||
|
profiles/audio/media.c | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/profiles/audio/media.c b/profiles/audio/media.c
|
||||||
|
index 02bf82a..0892532 100644
|
||||||
|
--- a/profiles/audio/media.c
|
||||||
|
+++ b/profiles/audio/media.c
|
||||||
|
@@ -1280,7 +1280,7 @@ static bool stop(void *user_data)
|
||||||
|
return media_player_send(mp, "Stop");
|
||||||
|
}
|
||||||
|
|
||||||
|
-static bool pause(void *user_data)
|
||||||
|
+static bool func_pause(void *user_data)
|
||||||
|
{
|
||||||
|
struct media_player *mp = user_data;
|
||||||
|
|
||||||
|
@@ -1330,7 +1330,7 @@ static struct avrcp_player_cb player_cb = {
|
||||||
|
.set_volume = set_volume,
|
||||||
|
.play = play,
|
||||||
|
.stop = stop,
|
||||||
|
- .pause = pause,
|
||||||
|
+ .pause = func_pause,
|
||||||
|
.next = next,
|
||||||
|
.previous = previous,
|
||||||
|
};
|
||||||
|
--
|
||||||
|
2.34.1
|
||||||
|
|
||||||
Reference in New Issue
Block a user