summaryrefslogtreecommitdiff
path: root/net-wireless/bluez/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-01-31 09:01:31 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-01-31 09:01:31 +0000
commite9bf3526a3a5e02396f24203bf8535a21b6f9784 (patch)
treea14d6832a5139117f06ad9045537f23d4b6fbf58 /net-wireless/bluez/files
parent4b70b249bd1fe7302633ca0b4f7abd22dd269d02 (diff)
gentoo auto-resync : 31:01:2023 - 09:01:31
Diffstat (limited to 'net-wireless/bluez/files')
-rw-r--r--net-wireless/bluez/files/bluez-5.66-musl-max-input.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/net-wireless/bluez/files/bluez-5.66-musl-max-input.patch b/net-wireless/bluez/files/bluez-5.66-musl-max-input.patch
new file mode 100644
index 000000000000..d8bdb3316e49
--- /dev/null
+++ b/net-wireless/bluez/files/bluez-5.66-musl-max-input.patch
@@ -0,0 +1,19 @@
+# https://lore.kernel.org/linux-bluetooth/20230131055258.3311810-1-sam@gentoo.org/T/#u
+# musl does provide _POSIX_MAX_INPUT, but no MAX_INPUT out of the box.
+# This patch assigns _POSIX_MAX_INPUT to MAX_INPUT.
+# Please refer: https://github.com/nilfs-dev/nilfs-utils/commit/115fe4b976858c487cf83065f513d8626089579a
+# https://bugs.gentoo.org/888467
+--- a/src/shared/util.c
++++ b/src/shared/util.c
+@@ -28,6 +28,11 @@
+ #include <sys/random.h>
+ #endif
+
++/* define MAX_INPUT for musl */
++#ifndef MAX_INPUT
++#define MAX_INPUT _POSIX_MAX_INPUT
++#endif
++
+ #include "src/shared/util.h"
+
+ void *util_malloc(size_t size)