Browse Source

fix building when PATH_MAX is not defined. (should fix debian bug 320736)

git-svn-id: svn+ssh://jackaudio.org/trunk/jack@3474 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.117.0
torben 17 years ago
parent
commit
32edf3758f
2 changed files with 9 additions and 0 deletions
  1. +1
    -0
      jack/driver_interface.h
  2. +8
    -0
      jack/internal.h

+ 1
- 0
jack/driver_interface.h View File

@@ -27,6 +27,7 @@ extern "C" {
#include <limits.h>

#include <jack/jack.h>
#include <jack/internal.h>

#define JACK_DRIVER_NAME_MAX 15
#define JACK_DRIVER_PARAM_NAME_MAX 15


+ 8
- 0
jack/internal.h View File

@@ -81,6 +81,14 @@ const char* jack_clock_source_name (jack_timer_type_t);

#include <jack/messagebuffer.h>

#ifndef PATH_MAX
#ifdef MAXPATHLEN
#define PATH_MAX MAXPATHLEN
#else
#define PATH_MAX 1024
#endif /* MAXPATHLEN */
#endif /* !PATH_MAX */

#ifdef DEBUG_ENABLED

/* grab thread id instead of PID on linux */


Loading…
Cancel
Save