Debian Codegraph @

debian/patches/0002-Add-a-fallback-definition-of-PATH_MAX-if-not-already.patch

raw
1 From: Pino Toscano <[email protected]>
2 Date: Sun, 1 Sep 2024 19:51:21 +0200
3 Subject: Add a fallback definition of PATH_MAX if not already defined
4
5 This is an easy hack to make libdvdread build also on GNU/Hurd, which
6 does not provide PATH_MAX by design. A better approach (i.e. getting
7 rid of PATH_MAX) is more suitable for upstream, rather than as a
8 distro-specific patch.
9
10 Forwarded: not-needed
11 Last-Update: 2024-09-01
12 ---
13 src/dvd_reader.c | 4 ++++
14 1 file changed, 4 insertions(+)
15
16 diff --git a/src/dvd_reader.c b/src/dvd_reader.c
17 index 77d51a7..02e82ae 100644
18 --- a/src/dvd_reader.c
19 +++ b/src/dvd_reader.c
20 @@ -85,6 +85,10 @@ static inline int _private_gettimeofday( struct timeval *tv, void *tz )
21 # endif
22 #endif /* _WIN32 */
23
24 +#ifndef PATH_MAX
25 +#define PATH_MAX 4096
26 +#endif
27 +
28 #define DEFAULT_UDF_CACHE_LEVEL 1
29
30 struct dvd_reader_device_s {