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.
Bug-Debian: http://bugs.debian.org/530516
Author: "Marc Dequènes (Duck)" <duck@duckcorp.org>
Applied-Upstream: 0.82, http://git.savannah.gnu.org/cgit/libcdio.git/commit/?id=2522c26ec8082be46ee4012cfac76467bb0fb350
--- a/lib/cdda_interface/scan_devices.c
+++ b/lib/cdda_interface/scan_devices.c
@@ -39,6 +39,10 @@
 #include <sys/stat.h>
 #endif
 
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
 #define MAX_DEV_LEN 20 /* Safe because strings only come from below */
 /* must be absolute paths! */
 static const char scsi_cdrom_prefixes[][16]={
--- a/lib/driver/_cdio_generic.c
+++ b/lib/driver/_cdio_generic.c
@@ -49,6 +49,10 @@
 #include "_cdio_stdio.h"
 #include "portable.h"
 
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
 /*!
   Eject media -- there's nothing to do here. We always return -2.
   Should we also free resources? 
--- a/lib/driver/gnu_linux.c
+++ b/lib/driver/gnu_linux.c
@@ -77,6 +77,10 @@
 #include <sys/types.h>
 #include <sys/ioctl.h>
 
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
 typedef enum {
   _AM_NONE,
   _AM_IOCTL,
--- a/lib/driver/util.c
+++ b/lib/driver/util.c
@@ -40,6 +40,10 @@
 #include <cdio/types.h>
 #include <cdio/util.h>
 
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
 static const char _rcsid[] = "$Id: util.c,v 1.6 2008/04/22 15:29:12 karl Exp $";
 
 size_t
