Package: babeltrace / 1.5.6-2+deb10u1

0001-Fix-Hurd-compat-for-PATH_MAX.patch Patch series | download
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
From fcde6796c254220b7afffd20d1039cf849650c90 Mon Sep 17 00:00:00 2001
From: Michael Jeanson <mjeanson@efficios.com>
Date: Fri, 8 Jul 2016 11:20:18 +0200
Subject: [PATCH babeltrace] Fix: Hurd compat for PATH_MAX

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
---
 include/babeltrace/compat/limits.h         | 5 +++++
 include/babeltrace/trace-handle-internal.h | 1 +
 tests/lib/test_bin_info.c                  | 1 +
 tests/lib/test_dwarf.c                     | 1 +
 4 files changed, 8 insertions(+)

--- a/include/babeltrace/compat/limits.h
+++ b/include/babeltrace/compat/limits.h
@@ -43,4 +43,9 @@
 
 #endif /* __linux__, __FreeBSD__, _POSIX_HOST_NAME_MAX */
 
+
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif /* PATH_MAX */
+
 #endif /* _BABELTRACE_LIMITS_H */
--- a/include/babeltrace/trace-handle-internal.h
+++ b/include/babeltrace/trace-handle-internal.h
@@ -34,6 +34,7 @@
 #include <stdlib.h>
 #include <babeltrace/context.h>
 #include <babeltrace/format.h>
+#include <babeltrace/compat/limits.h>
 
 /*
  * trace_handle : unique identifier of a trace
--- a/tests/lib/test_bin_info.c
+++ b/tests/lib/test_bin_info.c
@@ -24,6 +24,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <babeltrace/bin-info.h>
+#include <babeltrace/compat/limits.h>
 #include "tap/tap.h"
 
 #define NR_TESTS 36
--- a/tests/lib/test_dwarf.c
+++ b/tests/lib/test_dwarf.c
@@ -26,6 +26,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <babeltrace/dwarf.h>
+#include <babeltrace/compat/limits.h>
 #include "tap/tap.h"
 
 #define NR_TESTS 15
--- a/include/babeltrace/format-internal.h
+++ b/include/babeltrace/format-internal.h
@@ -33,6 +33,7 @@
 #include <babeltrace/context-internal.h>
 #include <babeltrace/babeltrace-internal.h>
 #include <babeltrace/ctf/types.h>
+#include <babeltrace/compat/limits.h>
 
 #ifdef __cplusplus
 extern "C" {