From: Debian Elfutils Maintainers Date: Wed, 22 Apr 2026 15:20:17 +0000 (+0200) Subject: hurd-hacks X-Git-Tag: archive/raspbian/0.195-1+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f0f1bb0f6e3082ed586d4b9f192dc88bc2f54abf;p=elfutils.git hurd-hacks Gbp-Pq: Name hurd-hacks.diff --- diff --git a/debuginfod/debuginfod-client.c b/debuginfod/debuginfod-client.c index fb9ad82..4f7176d 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 88a69d0..e803632 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" @@ -788,10 +789,10 @@ parse_opt (int key, char *arg, case 'H': cust_homepage_file = arg; break; - 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