File: hurd-fix.patch

package info (click to toggle)
pmix 6.0.0%2Breally5.0.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,676 kB
  • sloc: ansic: 125,367; sh: 4,265; python: 2,527; makefile: 2,109; xml: 1,611; perl: 1,151; lex: 138
file content (35 lines) | stat: -rw-r--r-- 1,067 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Origin-Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=881952
Description: Fix for MAXHOSTNAMELEN, MAXPATHLEN not present on Hurd
Author: Alastair McKinstry <mckinstry@debian.org>
Forwarded: no
Last-Updated: 2024-12-01

--- a/src/mca/base/pmix_mca_base_var.c
+++ b/src/mca/base/pmix_mca_base_var.c
@@ -52,6 +52,10 @@
 #include "src/util/pmix_printf.h"
 #include "src/util/pmix_show_help.h"
 
+#ifndef MAXPATHLEN /* Hurd */
+#define MAXPATHLEN 1024
+#endif
+
 /*
  * global variables
  */
Index: pmix-5.0.4/src/common/pmix_pfexec.c
===================================================================
--- pmix-5.0.4.orig/src/common/pmix_pfexec.c
+++ pmix-5.0.4/src/common/pmix_pfexec.c
@@ -88,6 +88,10 @@
 #include "src/common/pmix_pfexec.h"
 #include "src/server/pmix_server_ops.h"
 
+#ifndef MAXPATHLEN /* Hurd */
+#define MAXPATHLEN 1024
+#endif
+
 static pmix_status_t setup_prefork(pmix_pfexec_child_t *child);
 static pmix_status_t register_nspace(char *nspace, pmix_setup_caddy_t *fcd);
 static void wait_signal_callback(int fd, short event, void *arg);