diff --git a/include/asterisk.h b/include/asterisk.h index 25737805bca5f5d0f19a9332120652f2389cd2ec..862fa1fe5f56f05dd9c03864408d7f53fb335e77 100644 --- a/include/asterisk.h +++ b/include/asterisk.h @@ -36,6 +36,15 @@ #define AST_FILE_MODE 0666 #endif +/* Make sure PATH_MAX is defined on platforms (HURD) that don't define it. + * Also be sure to handle the case of a path larger than PATH_MAX + * (err safely) in the code. + */ +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + + #define DEFAULT_LANGUAGE "en" #define DEFAULT_SAMPLE_RATE 8000