File: hurd-fix.patch

package info (click to toggle)
pmix 6.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 12,364 kB
  • sloc: ansic: 134,173; sh: 4,271; python: 2,785; makefile: 2,286; xml: 1,611; perl: 1,341; lex: 138
file content (32 lines) | stat: -rw-r--r-- 847 bytes parent folder | download | duplicates (3)
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
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
@@ -56,6 +56,10 @@
 #define MAXPATHLEN 1024
 #endif
 
+#ifndef MAXPATHLEN /* Hurd */
+#define MAXPATHLEN 1024
+#endif
+
 /*
  * global variables
  */
--- a/src/common/pmix_pfexec.c
+++ b/src/common/pmix_pfexec.c
@@ -92,6 +92,10 @@
 #define MAXPATHLEN 1024
 #endif
 
+#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);