X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fclean-temp.c;h=22e766bc690d99ef64a7846ed14ffdf758ef3615;hb=8ea6bf995cf561a525abc8f716e98c8a9b917496;hp=0ac9fa04ef9756335e93df733d12d13d3661e1c1;hpb=d60f3b0c6b0f93a601acd1cfd3923f94ca05abb0;p=gnulib.git diff --git a/lib/clean-temp.c b/lib/clean-temp.c index 0ac9fa04e..22e766bc6 100644 --- a/lib/clean-temp.c +++ b/lib/clean-temp.c @@ -59,13 +59,10 @@ #define _(str) gettext (str) -/* GNU Hurd doesn't have PATH_MAX. */ +/* GNU Hurd doesn't have PATH_MAX. Use a fallback. + Temporary directory names are usually not that long. */ #ifndef PATH_MAX -# ifdef MAXPATHLEN -# define PATH_MAX MAXPATHLEN -# else -# define PATH_MAX 1024 -# endif +# define PATH_MAX 1024 #endif #ifndef uintptr_t