shared: define MAX_INPUT for musl
authorSam James <sam@gentoo.org>
Tue, 31 Jan 2023 05:52:58 +0000 (05:52 +0000)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 10:11:34 +0000 (15:41 +0530)
commit1792aa5c3d0038f83ae08f8b28607ac4010e4820
tree73e20b743bf68af5d3ff2fa4701aab22a0ad8ae1
parentd96a3af335df67647552f78dcb2dd8807580c635
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
src/shared/util.c