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);
