diff options
| author | Robert Yang <liezhi.yang@windriver.com> | 2019-10-15 11:08:12 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-10-19 23:18:33 +0100 |
| commit | 123932ceaa84081d5447a943b1d58a41e84132bc (patch) | |
| tree | 87c315dc54cb5ca79dc6316a5a3efaeb44697efa | |
| parent | b514e1f0bed9856d00afc8832b18dcff31ee4a98 (diff) | |
| download | poky-123932ceaa84081d5447a943b1d58a41e84132bc.tar.gz | |
bluez5: Fix for --enable-btpclient
Fixed:
PACKAGECONFIG_append_pn-bluez5 = ' btpclient'
$ bitbake bluez5
btpclient.c:2834:7: error: 'SIGINT' undeclared (first use in this function)
(From OE-Core rev: e72cd2950b38a5fc45908c9601679e601cf60559)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5.inc | 1 | ||||
| -rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5/0001-tools-btpclient.c-include-signal.h.patch | 30 |
2 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc index f582a07e22..1702323288 100644 --- a/meta/recipes-connectivity/bluez5/bluez5.inc +++ b/meta/recipes-connectivity/bluez5/bluez5.inc | |||
| @@ -58,6 +58,7 @@ SRC_URI = "\ | |||
| 58 | file://CVE-2018-10910.patch \ | 58 | file://CVE-2018-10910.patch \ |
| 59 | file://gcc9-fixes.patch \ | 59 | file://gcc9-fixes.patch \ |
| 60 | file://0001-tools-Fix-build-after-y2038-changes-in-glibc.patch \ | 60 | file://0001-tools-Fix-build-after-y2038-changes-in-glibc.patch \ |
| 61 | file://0001-tools-btpclient.c-include-signal.h.patch \ | ||
| 61 | " | 62 | " |
| 62 | S = "${WORKDIR}/bluez-${PV}" | 63 | S = "${WORKDIR}/bluez-${PV}" |
| 63 | 64 | ||
diff --git a/meta/recipes-connectivity/bluez5/bluez5/0001-tools-btpclient.c-include-signal.h.patch b/meta/recipes-connectivity/bluez5/bluez5/0001-tools-btpclient.c-include-signal.h.patch new file mode 100644 index 0000000000..620aaabc68 --- /dev/null +++ b/meta/recipes-connectivity/bluez5/bluez5/0001-tools-btpclient.c-include-signal.h.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From 0b1766514f6847c7367fce07f19a750ec74c11a6 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Robert Yang <liezhi.yang@windriver.com> | ||
| 3 | Date: Thu, 26 Sep 2019 16:19:34 +0800 | ||
| 4 | Subject: [PATCH] tools/btpclient.c: include signal.h | ||
| 5 | |||
| 6 | Fix compile failure when configure --enable-btpclient: | ||
| 7 | btpclient.c:2834:7: error: 'SIGINT' undeclared (first use in this function) | ||
| 8 | |||
| 9 | Upstream-Status: Backport [A subset of the full fix that went upstream] | ||
| 10 | |||
| 11 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
| 12 | --- | ||
| 13 | tools/btpclient.c | 1 + | ||
| 14 | 1 file changed, 1 insertion(+) | ||
| 15 | |||
| 16 | diff --git a/tools/btpclient.c b/tools/btpclient.c | ||
| 17 | index b217df5..aece7fe 100644 | ||
| 18 | --- a/tools/btpclient.c | ||
| 19 | +++ b/tools/btpclient.c | ||
| 20 | @@ -29,6 +29,7 @@ | ||
| 21 | #include <stdlib.h> | ||
| 22 | #include <assert.h> | ||
| 23 | #include <getopt.h> | ||
| 24 | +#include <signal.h> | ||
| 25 | |||
| 26 | #include <ell/ell.h> | ||
| 27 | |||
| 28 | -- | ||
| 29 | 2.7.4 | ||
| 30 | |||
