projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
isatty: Fix test failure of ptsname_r on native Windows.
[gnulib.git]
/
lib
/
clean-temp.c
diff --git
a/lib/clean-temp.c
b/lib/clean-temp.c
index
9300815
..
b05550a
100644
(file)
--- a/
lib/clean-temp.c
+++ b/
lib/clean-temp.c
@@
-1,5
+1,5
@@
/* Temporary directories and temporary files with automatic cleanup.
/* Temporary directories and temporary files with automatic cleanup.
- Copyright (C) 2001, 2003, 2006-2007, 2009-201
0
Free Software Foundation,
+ Copyright (C) 2001, 2003, 2006-2007, 2009-201
2
Free Software Foundation,
Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
@@
-59,13
+59,10
@@
#define _(str) gettext (str)
#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
#ifndef PATH_MAX
-# ifdef MAXPATHLEN
-# define PATH_MAX MAXPATHLEN
-# else
-# define PATH_MAX 1024
-# endif
+# define PATH_MAX 1024
#endif
#ifndef uintptr_t
#endif
#ifndef uintptr_t