diff -ur globus_gass_cache-5.4.orig/globus_gass_cache.c globus_gass_cache-5.4/globus_gass_cache.c --- globus_gass_cache-5.4.orig/globus_gass_cache.c 2009-05-08 19:51:16.000000000 +0200 +++ globus_gass_cache-5.4/globus_gass_cache.c 2009-08-06 10:27:18.194951999 +0200 @@ -120,6 +120,10 @@ #define GLOBUS_L_READY_OTHER -108 /* Data ready from another process */ #define GLOBUS_L_ETIMEOUT -109 /* Time out waiting for ready */ +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + /* Prototype the mangling functions. */ static int diff -ur globus_gass_cache-5.4.orig/globus_gass_cache.h globus_gass_cache-5.4/globus_gass_cache.h --- globus_gass_cache-5.4.orig/globus_gass_cache.h 2006-01-19 06:54:34.000000000 +0100 +++ globus_gass_cache-5.4/globus_gass_cache.h 2009-08-06 10:18:54.383953557 +0200 @@ -82,10 +82,6 @@ #define GLOBUS_GASS_CACHE_TIMESTAMP_UNKNOWN 0UL -#if !defined(PATH_MAX) && defined(MAXPATHLEN) -# define PATH_MAX MAXPATHLEN -#endif - /* * Other definitions */