diff options
Diffstat (limited to 'meta/recipes-connectivity/bluez5/bluez5/0004-src-shared-util.c-include-linux-limits.h.patch')
-rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5/0004-src-shared-util.c-include-linux-limits.h.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/bluez5/bluez5/0004-src-shared-util.c-include-linux-limits.h.patch b/meta/recipes-connectivity/bluez5/bluez5/0004-src-shared-util.c-include-linux-limits.h.patch new file mode 100644 index 0000000000..516d859069 --- /dev/null +++ b/meta/recipes-connectivity/bluez5/bluez5/0004-src-shared-util.c-include-linux-limits.h.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From b53df61b41088b68c127ac76cc71683ac3453b9d Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex@linutronix.de> | ||
3 | Date: Mon, 12 Dec 2022 13:10:19 +0100 | ||
4 | Subject: [PATCH] src/shared/util.c: include linux/limits.h | ||
5 | |||
6 | MAX_INPUT is defined in that file. This matters on non-glibc | ||
7 | systems such as those using musl. | ||
8 | |||
9 | Upstream-Status: Submitted [to linux-bluetooth@vger.kernel.org,luiz.von.dentz@intel.com,frederic.danis@collabora.com] | ||
10 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
11 | |||
12 | --- | ||
13 | src/shared/util.c | 1 + | ||
14 | 1 file changed, 1 insertion(+) | ||
15 | |||
16 | diff --git a/src/shared/util.c b/src/shared/util.c | ||
17 | index c0c2c4a..036dc0d 100644 | ||
18 | --- a/src/shared/util.c | ||
19 | +++ b/src/shared/util.c | ||
20 | @@ -23,6 +23,7 @@ | ||
21 | #include <unistd.h> | ||
22 | #include <dirent.h> | ||
23 | #include <limits.h> | ||
24 | +#include <linux/limits.h> | ||
25 | #include <string.h> | ||
26 | |||
27 | #ifdef HAVE_SYS_RANDOM_H | ||