hurd-hacks
authorDebian Elfutils Maintainers <debian-gcc@lists.debian.org>
Fri, 2 Sep 2022 21:11:29 +0000 (22:11 +0100)
committerSergio Durigan Junior <sergiodj@debian.org>
Fri, 2 Sep 2022 21:11:29 +0000 (22:11 +0100)
Gbp-Pq: Name hurd-hacks.diff

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

index 91783ed86388a3704884cfa14e4229d12251b2c9..f53a415eeaa6e76b457d5dd8c7d38490d9ab57fd 100644 (file)
 #include <errno.h>
 #include <stdlib.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 4aaf41c0886eeb2d246d97d6fa68a7788ba5a916..7aaffd1d9184c4f35945b7ec25c19b029e19b829 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
@@ -633,10 +634,10 @@ parse_opt (int key, char *arg,
         argp_failure(state, 1, EINVAL, "inconsistent options with passive mode");
       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