Port: Set PATH_MAX on GNU Hurd
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 25 Jun 2020 16:19:45 +0000 (12:19 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 16 Jul 2020 21:58:41 +0000 (17:58 -0400)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I1490391b47ad9fe905482a362f589d26f5a13a3c

src/common/common.c
src/compat/limits.h
src/lib/plugin/plugin.c

index 85920c10b4525de2b96e66b0243a7c915c18882f..c82bee330c2e2ff963c10a044e5bcdcef63fd813 100644 (file)
@@ -27,6 +27,7 @@
 #include "common/macros.h"
 #include "common/common.h"
 #include "compat/unistd.h"
+#include "compat/limits.h"
 
 #ifndef __MINGW32__
 #include <pwd.h>
index be54499a5f764659ffdf3105da4e3f2541d0b627..712ca7a054721c52c96e2da213ea110afef12c65 100644 (file)
@@ -27,4 +27,9 @@
 
 #endif /* __linux__, __FreeBSD__, _POSIX_HOST_NAME_MAX */
 
+/* GNU Hurd has no PATH_MAX, use a sensible default */
+#ifdef __GNU__
+#define PATH_MAX 4096
+#endif /* __GNU__ */
+
 #endif /* _BABELTRACE_LIMITS_H */
index 93a56c27eec835fd1798d56686fca200e169d0bb..434bb3ea5a0d43fa510d894c909a09f0ef8fba14 100644 (file)
@@ -12,6 +12,7 @@
 #include "lib/assert-cond.h"
 #include "common/macros.h"
 #include "compat/compiler.h"
+#include "compat/limits.h"
 #include "common/common.h"
 #include <babeltrace2/plugin/plugin-loading.h>
 #include <babeltrace2/graph/component-class.h>
This page took 0.02667 seconds and 4 git commands to generate.