Package: libcdio / 0.83-4.3

02_fix_posixness 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
Description: Define PATH_MAX if undefined.
 PATH_MAX is not defined by the POSIX standard and, while linux has such a
 limitation, other systems, such as Hurd, have no such concept.
 Define it to 4096 on such systems to avoid a build failure.
 The original patch, by "Marc Dequènes (Duck)" <duck@duckcorp.org>, was
 applied for 0.82, but a new use of PATH_MAX was added later.
Bug-Debian: http://bugs.debian.org/530516
Author: Nicolas Boullis <nboullis@debian.org>
Last-Update: 2011-12-29
--- a/test/driver/realpath.c
+++ b/test/driver/realpath.c
@@ -56,6 +56,10 @@
 
 #define MY_DIR_SEPARATOR '/'
 
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
 static char *
 get_temporary_name(const char *dirname, const char *errmsg)
 {