aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-01-11 09:53:17 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-01-11 09:53:17 +0800
commit9a6363178b184a56037b0e503b41ebf461b8021c (patch)
tree920f671f89590c00c784ea79050d6c27c644f577
parentb7b8622a46519317aff2d66645c66380580cceb5 (diff)
downloadgsoc2013-evolution-9a6363178b184a56037b0e503b41ebf461b8021c.tar.gz
gsoc2013-evolution-9a6363178b184a56037b0e503b41ebf461b8021c.tar.zst
gsoc2013-evolution-9a6363178b184a56037b0e503b41ebf461b8021c.zip
If PATH_MAX doesn't exist, use _POSIX_PATH_MAX.
2002-01-10 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-local-folder.c: If PATH_MAX doesn't exist, use _POSIX_PATH_MAX. svn path=/trunk/; revision=15291
-rw-r--r--camel/ChangeLog3
-rw-r--r--camel/providers/local/camel-local-folder.c8
2 files changed, 11 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 96eab123fb..0747303c31 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,8 @@
2002-01-10 Jeffrey Stedfast <fejj@ximian.com>
+ * providers/local/camel-local-folder.c: If PATH_MAX doesn't exist,
+ use _POSIX_PATH_MAX.
+
* providers/imap/camel-imap-folder.c (imap_update_summary): If mi
is NULL, don't bother updating it. Should fix bug #17694.
diff --git a/camel/providers/local/camel-local-folder.c b/camel/providers/local/camel-local-folder.c
index b6d6ef8ab2..d84041025c 100644
--- a/camel/providers/local/camel-local-folder.c
+++ b/camel/providers/local/camel-local-folder.c
@@ -33,6 +33,10 @@
#include <string.h>
#include <fcntl.h>
+#ifndef _POSIX_PATH_MAX
+#include <posix1_lim.h>
+#endif
+
#include "camel-local-folder.h"
#include "camel-local-store.h"
#include "string-utils.h"
@@ -48,6 +52,10 @@
#define d(x) /*(printf("%s(%d): ", __FILE__, __LINE__),(x))*/
+#ifndef PATH_MAX
+#define PATH_MAX _POSIX_PATH_MAX
+#endif
+
static CamelFolderClass *parent_class = NULL;
/* Returns the class for a CamelLocalFolder */