From: Debian Elfutils Maintainers Date: Thu, 16 Nov 2023 13:54:07 +0000 (+0100) Subject: hurd-hacks X-Git-Tag: archive/raspbian/0.191-2+rpi1~1^2^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=452244b9c4c8ba3f2dbdd2022819a233c6788a75;p=elfutils.git hurd-hacks =================================================================== Gbp-Pq: Name hurd-hacks.diff --- diff --git a/debuginfod/debuginfod-client.c b/debuginfod/debuginfod-client.c index 5a03265..a5e3811 100644 --- a/debuginfod/debuginfod-client.c +++ b/debuginfod/debuginfod-client.c @@ -47,6 +47,10 @@ #include #include +#ifndef PATH_MAX +#define PATH_MAX 1024 +#endif + /* We might be building a bootstrap dummy library, which is really simple. */ #ifdef DUMMY_LIBDEBUGINFOD diff --git a/debuginfod/debuginfod.cxx b/debuginfod/debuginfod.cxx index c11aeda..7fceb33 100644 --- a/debuginfod/debuginfod.cxx +++ b/debuginfod/debuginfod.cxx @@ -50,6 +50,8 @@ extern "C" { } #endif +#include + extern "C" { #include "printversion.h" #include "system.h" @@ -58,7 +60,6 @@ extern "C" { #include "debuginfod.h" #include -#include #ifdef __GNUC__ #undef __attribute__ /* glibc bug - rhbz 1763325 */ #endif @@ -700,10 +701,10 @@ parse_opt (int key, char *arg, argp_failure(state, 1, EINVAL, "scan checkpoint"); break; // case 'h': argp_state_help (state, stderr, ARGP_HELP_LONG|ARGP_HELP_EXIT_OK); - default: return ARGP_ERR_UNKNOWN; + default: return (error_t) ARGP_ERR_UNKNOWN; } - return 0; + return (error_t)0; } diff --git a/tests/backtrace.c b/tests/backtrace.c index 5555530..ed8f789 100644 --- a/tests/backtrace.c +++ b/tests/backtrace.c @@ -40,6 +40,10 @@ #endif #include "system.h" +#ifndef PATH_MAX +#define PATH_MAX 1024 +#endif + #ifndef __linux__ int