Include limits.h.
(maildir_uniq): Use _POSIX_PATH_MAX if PATH_MAX is not defined.
Showing
1 changed file
with
5 additions
and
0 deletions
... | @@ -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; | ... | ... |
-
Please register or sign in to post a comment