]> git.ipfire.org Git - thirdparty/elfutils.git/commit
debuginfod: Make sure PATH_MAX exists in debuginfod-client.c
authorMark Wielaard <mark@klomp.org>
Thu, 26 Mar 2026 12:32:18 +0000 (13:32 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 26 Mar 2026 12:32:18 +0000 (13:32 +0100)
commitd13e0dba6dc77020bfb35a8fd1641428458f1a65
treee8a151c263abcd157273b8c3ef2a0b2ccba5b8bd
parent31e0538df2d76ed3f77ac3bf57d07bded9a93988
debuginfod: Make sure PATH_MAX exists in debuginfod-client.c

Some systems (Hurd) don't define PATH_MAX (which is optional according
to POSIX). Make sure it is defined and no special linux specific
headers are used in debuginfod-client.c.

* debuginfod/debuginfod-client.c: Include limits.h instead of
linux/limits. If PATH_MAX isn't define it to 4K (the default
on GNU/Linux).

https://sourceware.org/bugzilla/show_bug.cgi?id=34016

Signed-off-by: Mark Wielaard <mark@klomp.org>
debuginfod/debuginfod-client.c