diff options
author | Sam James <sam@gentoo.org> | 2023-01-31 05:52:58 +0000 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2023-01-31 14:10:29 -0800 |
commit | ca6546fe521360fcf905bc115b893f322e706cb2 (patch) | |
tree | 4d2391075ac9795c37168b9d369af9d4d31aba5d /src/shared | |
parent | 8787aed7fe0089c079884784131e630ddacc6d26 (diff) | |
download | bluez-ca6546fe521360fcf905bc115b893f322e706cb2.tar.gz |
shared: define MAX_INPUT for musl
musl systems don't have MAX_INPUT. Just define it to _POSIX_MAX_INPUT
which musl does have if it's not already defined.
Note that on glibc, the values match anyway (as of glibc-2.36), and
indeed POSIX_MAX_INPUT has the same value on musl too.
Bug: https://bugs.gentoo.org/888467
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/util.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/shared/util.c b/src/shared/util.c index 2f0ae0e86..b466fb001 100644 --- 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) |