Commit 276e1779 276e177917777b9592938c863dcf9d8796b82b22 by Sergey Poznyakoff

Include limits.h.

(maildir_uniq): Use _POSIX_PATH_MAX if PATH_MAX is not
defined.
1 parent 1590afb6
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
35 #include <errno.h> 35 #include <errno.h>
36 #include <ctype.h> 36 #include <ctype.h>
37 #include <dirent.h> 37 #include <dirent.h>
38 #include <limits.h>
38 39
39 #ifdef WITH_PTHREAD 40 #ifdef WITH_PTHREAD
40 # ifdef HAVE_PTHREAD_H 41 # ifdef HAVE_PTHREAD_H
...@@ -66,6 +67,10 @@ ...@@ -66,6 +67,10 @@
66 #include <amd.h> 67 #include <amd.h>
67 #include <maildir.h> 68 #include <maildir.h>
68 69
70 #ifndef PATH_MAX
71 # define PATH_MAX _POSIX_PATH_MAX
72 #endif
73
69 struct _maildir_message 74 struct _maildir_message
70 { 75 {
71 struct _amd_message amd_message; 76 struct _amd_message amd_message;
......