# HG changeset patch # User Richard Laager # Date 1183252221 0 # Node ID ed470f35ceab101b46463744e18a0dbb88144128 # Parent b1fc539eb3906c99fa6eb6a7329c5712043251d4 We don't want to be using MAXPATHLEN except for backwards compatibility. diff -r b1fc539eb390 -r ed470f35ceab libpurple/internal.h --- a/libpurple/internal.h Sun Jul 01 01:09:29 2007 +0000 +++ b/libpurple/internal.h Sun Jul 01 01:10:21 2007 +0000 @@ -111,11 +111,16 @@ # include #endif -#ifndef MAXPATHLEN -# ifdef PATH_MAX -# define MAXPATHLEN PATH_MAX -# else -# define MAXPATHLEN 1024 +/* MAXPATHLEN should only be used with readlink() on glib < 2.4.0. For + * anything else, use g_file_read_link() or other dynamic functions. This is + * important because Hurd has no hard limits on path length. */ +#if !GLIB_CHECK_VERSION(2,4,0) +# ifndef MAXPATHLEN +# ifdef PATH_MAX +# define MAXPATHLEN PATH_MAX +# else +# define MAXPATHLEN 1024 +# endif # endif #endif