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 @@
#include <errno.h>
#include <ctype.h>
#include <dirent.h>
#include <limits.h>
#ifdef WITH_PTHREAD
# ifdef HAVE_PTHREAD_H
......@@ -66,6 +67,10 @@
#include <amd.h>
#include <maildir.h>
#ifndef PATH_MAX
# define PATH_MAX _POSIX_PATH_MAX
#endif
struct _maildir_message
{
struct _amd_message amd_message;
......