hurd-hacks
authorDebian Elfutils Maintainers <debian-gcc@lists.debian.org>
Sat, 14 Jan 2023 13:54:50 +0000 (13:54 +0000)
committerHelge Kreutzmann <debian@helgefjell.de>
Sat, 14 Jan 2023 13:54:50 +0000 (13:54 +0000)
===================================================================

Gbp-Pq: Name hurd-hacks.diff

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

index 20759ceb4562848ba94b40521911e71c34811bca..e200cb13cd8cbc7dc8c4d1be5b60b2e9fc5ed65c 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 f46da6eff4a7a224c63b6075e95c082c9f46beae..d7b825b7d37d5793852089d0894df02a194ef632 100644 (file)
@@ -32,6 +32,8 @@
   #include "config.h"
 #endif
 
+#include <argp.h>
+
 extern "C" {
 #include "printversion.h"
 #include "system.h"
@@ -40,7 +42,6 @@ extern "C" {
 #include "debuginfod.h"
 #include <dwarf.h>
 
-#include <argp.h>
 #ifdef __GNUC__
 #undef __attribute__ /* glibc bug - rhbz 1763325 */
 #endif
@@ -640,10 +641,10 @@ parse_opt (int key, char *arg,
       scan_source_info = false;
       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 afc12fb939a1c24e876b731b4937656eecdb4107..2df9c62bbaf9e422c5510ddda1cecc0988a67274 100644 (file)
 #endif
 #include "system.h"
 
+#ifndef PATH_MAX
+#define PATH_MAX 1024
+#endif
+
 #ifndef __linux__
 
 int