summaryrefslogtreecommitdiff
path: root/include/asterisk.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asterisk.h')
-rw-r--r--include/asterisk.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asterisk.h b/include/asterisk.h
index c4cdfab9a..041f177e6 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