X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fclean-temp.c;h=22e766bc690d99ef64a7846ed14ffdf758ef3615;hb=8ea6bf995cf561a525abc8f716e98c8a9b917496;hp=99c81d14657b102bce3b67b777b04a30dd4d103b;hpb=441aa3044f43e5572f58c354f01e6bc070acd5c7;p=gnulib.git diff --git a/lib/clean-temp.c b/lib/clean-temp.c index 99c81d146..22e766bc6 100644 --- a/lib/clean-temp.c +++ b/lib/clean-temp.c @@ -1,5 +1,6 @@ /* Temporary directories and temporary files with automatic cleanup. - Copyright (C) 2001, 2003, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001, 2003, 2006-2007, 2009-2011 Free Software Foundation, + Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -40,6 +41,7 @@ #include "tmpdir.h" #include "xalloc.h" #include "xmalloca.h" +#include "gl_xlist.h" #include "gl_linkedhash_list.h" #include "gettext.h" #if GNULIB_FWRITEERROR @@ -57,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