From: Pino Toscano Date: Sun, 1 Sep 2024 19:51:21 +0200 Subject: Add a fallback definition of PATH_MAX if not already defined This is an easy hack to make libdvdread build also on GNU/Hurd, which does not provide PATH_MAX by design. A better approach (i.e. getting rid of PATH_MAX) is more suitable for upstream, rather than as a distro-specific patch. Forwarded: not-needed Last-Update: 2024-09-01 --- src/dvd_reader.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dvd_reader.c b/src/dvd_reader.c index 77d51a7..02e82ae 100644 --- a/src/dvd_reader.c +++ b/src/dvd_reader.c @@ -85,6 +85,10 @@ static inline int _private_gettimeofday( struct timeval *tv, void *tz ) # endif #endif /* _WIN32 */ +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + #define DEFAULT_UDF_CACHE_LEVEL 1 struct dvd_reader_device_s {