hurd-hacks
authorDebian Elfutils Maintainers <debian-gcc@lists.debian.org>
Wed, 22 Apr 2026 15:20:17 +0000 (17:20 +0200)
committerMatthias Klose <doko@debian.org>
Wed, 22 Apr 2026 15:20:17 +0000 (17:20 +0200)
Gbp-Pq: Name hurd-hacks.diff

debuginfod/debuginfod-client.c
debuginfod/debuginfod.cxx
tests/backtrace.c

index fb9ad82f7f5d32ab4cf15dc33e89132ad41c774b..4f7176d7ab4031769da7698679e36ab47f7fe3ae 100644 (file)
 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
 
index 88a69d092124813368ec1c021b5c90258a2f67d9..e80363202523c3b8be2f0956528a3f83b64f5ce4 100644 (file)
@@ -58,7 +58,6 @@ extern "C" {
 #include "debuginfod.h"
 #include <dwarf.h>
 
-#include <argp.h>
 #ifdef __GNUC__
 #undef __attribute__ /* glibc bug - rhbz 1763325 */
 #endif
@@ -150,6 +149,8 @@ using namespace std;
 #define tid() pthread_self()
 #endif
 
+#include <argp.h>
+
 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;
 }
 
 
index 555553012ff9322b701b03c7d2421612658e116a..ed8f789b568d02418f7ddf75be40b86ef24220ae 100644 (file)
 #endif
 #include "system.h"
 
+#ifndef PATH_MAX
+#define PATH_MAX 1024
+#endif
+
 #ifndef __linux__
 
 int