Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 1 | From 51584158b9a2e58f3790f8a7387b5cf167eca88b 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 | src/shared/util.c | 1 + |
| 13 | 1 file changed, 1 insertion(+) |
| 14 | |
| 15 | diff --git a/src/shared/util.c b/src/shared/util.c |
| 16 | index 0a0308c..1f61314 100644 |
| 17 | --- a/src/shared/util.c |
| 18 | +++ b/src/shared/util.c |
| 19 | @@ -22,6 +22,7 @@ |
| 20 | #include <unistd.h> |
| 21 | #include <dirent.h> |
| 22 | #include <limits.h> |
| 23 | +#include <linux/limits.h> |
| 24 | #include <string.h> |
| 25 | |
| 26 | #ifdef HAVE_SYS_RANDOM_H |