Bug#320736: Patch to handle PATH_MAX-less systems
Samuel Thibault
samuel.thibault at ens-lyon.org
Wed Mar 18 01:53:34 UTC 2009
unarchive 320736
found 320736 0.115.6-1
thanks
Hello,
07_path-max.patch got dropped because upstream was said to be fixed, but
it doesn't seem to be: there is still a bunch of PATH_MAX occurrences,
and no default value in the headers. Please reintroduce it (I've
attached an updated version to this mail).
Samuel
-------------- next part --------------
diff -Naur jack/internal.h jack/internal.h
--- jack/internal.h 2005-05-12 16:58:15.000000000 +0200
+++ jack/internal.h 2005-07-31 17:23:16.000000000 +0200
@@ -49,6 +49,14 @@
#include <sysdeps/mach_port.h>
#endif
+#ifndef PATH_MAX
+ #ifdef MAXPATHLEN
+ #define PATH_MAX MAXPATHLEN
+ #else
+ #define PATH_MAX 1024
+ #endif /* MAXPATHLEN */
+#endif /* !PATH_MAX */
+
#ifdef DEBUG_ENABLED
#define DEBUG(format,args...) \
fprintf (stderr, "jack:%5d:%" PRIu64 " %s:%s:%d: " format "\n", getpid(), jack_get_microseconds(), __FILE__, __FUNCTION__, __LINE__ , ## args)
diff -Naur libjack/unlock.c libjack/unlock.c
--- libjack/unlock.c 2005-05-03 15:31:52.000000000 +0200
+++ libjack/unlock.c 2005-07-31 17:23:46.000000000 +0200
@@ -27,6 +27,14 @@
#include "jack/unlock.h"
+#ifndef PATH_MAX
+ #ifdef MAXPATHLEN
+ #define PATH_MAX MAXPATHLEN
+ #else
+ #define PATH_MAX 1024
+ #endif /* MAXPATHLEN */
+#endif /* !PATH_MAX */
+
static char* blacklist[] = {
"/libgtk",
"/libqt",
--- jack/driver_interface.h.orig 2009-03-18 01:36:07.000000000 +0000
+++ jack/driver_interface.h 2009-03-18 01:36:38.000000000 +0000
@@ -27,6 +27,7 @@
#include <limits.h>
#include <jack/jack.h>
+#include <jack/internal.h>
#define JACK_DRIVER_NAME_MAX 15
#define JACK_DRIVER_PARAM_NAME_MAX 15
More information about the pkg-multimedia-maintainers
mailing list