hurd-hacks
authorDebian Elfutils Maintainers <debian-gcc@lists.debian.org>
Thu, 16 Nov 2023 13:54:07 +0000 (14:54 +0100)
committerMatthias Klose <doko@debian.org>
Thu, 16 Nov 2023 13:54:07 +0000 (14:54 +0100)
===================================================================

Gbp-Pq: Name hurd-hacks.diff

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

index 5a032652df29e15621a20c04aa89cb8f5757ad0a..a5e38113e2d6f5753afbb3003f0483a9ca2f55f0 100644 (file)
 #include <stdlib.h>
 #include <gelf.h>
 
+#ifndef PATH_MAX
+#define PATH_MAX 1024
+#endif
+
 /* We might be building a bootstrap dummy library, which is really simple. */
 #ifdef DUMMY_LIBDEBUGINFOD
 
index c11aeda1a3afa7d9bfef87e53cd678bad7647c9e..7fceb339ecf60491aa6c4e03c8301b625266a987 100644 (file)
@@ -50,6 +50,8 @@ extern "C" {
 }
 #endif
 
+#include <argp.h>
+
 extern "C" {
 #include "printversion.h"
 #include "system.h"
@@ -58,7 +60,6 @@ extern "C" {
 #include "debuginfod.h"
 #include <dwarf.h>
 
-#include <argp.h>
 #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;
 }
 
 
index 555553012ff9322b701b03c7d2421612658e116a..ed8f789b568d02418f7ddf75be40b86ef24220ae 100644 (file)
 #endif
 #include "system.h"
 
+#ifndef PATH_MAX
+#define PATH_MAX 1024
+#endif
+
 #ifndef __linux__
 
 int