From: Debian Elfutils Maintainers Date: Wed, 29 Oct 2025 05:57:58 +0000 (+0100) Subject: hurd-hacks X-Git-Tag: archive/raspbian/0.194-1+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=67d58fa0877e977ad19f21b2eb8b058d18ca244d;p=elfutils.git hurd-hacks Gbp-Pq: Name hurd-hacks.diff --- diff --git a/debuginfod/debuginfod-client.c b/debuginfod/debuginfod-client.c index c5bee79..e10e495 100644 --- a/debuginfod/debuginfod-client.c +++ b/debuginfod/debuginfod-client.c @@ -58,6 +58,10 @@ typedef enum {ignore, enforcing, undefined} ima_policy_t; +#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 8fc9426..66a523e 100644 --- a/debuginfod/debuginfod.cxx +++ b/debuginfod/debuginfod.cxx @@ -58,7 +58,6 @@ extern "C" { #include "debuginfod.h" #include -#include #ifdef __GNUC__ #undef __attribute__ /* glibc bug - rhbz 1763325 */ #endif @@ -150,6 +149,8 @@ using namespace std; #define tid() pthread_self() #endif +#include + extern "C" { #include "printversion.h" #include "system.h" @@ -769,10 +770,10 @@ parse_opt (int key, char *arg, addr_info = arg; 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