hurd-hacks
authorDebian Elfutils Maintainers <debian-gcc@lists.debian.org>
Tue, 22 Oct 2024 11:13:50 +0000 (13:13 +0200)
committerMatthias Klose <doko@debian.org>
Tue, 22 Oct 2024 11:13:50 +0000 (13:13 +0200)
Gbp-Pq: Name hurd-hacks.diff

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

index 0c2b43e6f33918955f5a73b20b6b62bb9837b796..d85907078b527e7152679dff2ebb8585d6ede8b2 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 4bb517bde80f7ee94eefc67b2607df430be3cb0d..5d7aca2b7a64eda442d10760932d6dbf7071c8a8 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
@@ -149,6 +148,8 @@ using namespace std;
 #define tid() pthread_self()
 #endif
 
+#include <argp.h>
+
 extern "C" {
 #include "printversion.h"
 #include "system.h"
@@ -748,10 +749,10 @@ parse_opt (int key, char *arg,
       break;
 #endif
       // 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;
 }
 
 
index 555553012ff9322b701b03c7d2421612658e116a..ed8f789b568d02418f7ddf75be40b86ef24220ae 100644 (file)
 #endif
 #include "system.h"
 
+#ifndef PATH_MAX
+#define PATH_MAX 1024
+#endif
+
 #ifndef __linux__
 
 int