projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7193a96
)
Provide a fallback for PATH_MAX.
author
Bruno Haible
<bruno@clisp.org>
Fri, 6 Oct 2006 21:20:20 +0000
(21:20 +0000)
committer
Bruno Haible
<bruno@clisp.org>
Fri, 6 Oct 2006 21:20:20 +0000
(21:20 +0000)
lib/ChangeLog
patch
|
blob
|
history
lib/clean-temp.c
patch
|
blob
|
history
diff --git
a/lib/ChangeLog
b/lib/ChangeLog
index f911467ffd734aae6702a846d13bf2653ee100f1..b9e32d6692816d16e7d1b4b34aab731f7dddfa07 100644
(file)
--- a/
lib/ChangeLog
+++ b/
lib/ChangeLog
@@
-1,3
+1,8
@@
+2006-10-06 Bruno Haible <bruno@clisp.org>
+
+ * clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
+ Reported by Eric Blake.
+
2006-09-29 Bruno Haible <bruno@clisp.org>
and Paul Eggert <eggert@cs.ucla.edu>
diff --git
a/lib/clean-temp.c
b/lib/clean-temp.c
index 1d1e07ccc1bb6d9dd34d94a8f9eb183a1cf5b79b..12b9b6ce27ef9b0e51614b8559f33fd1372daf7b 100644
(file)
--- a/
lib/clean-temp.c
+++ b/
lib/clean-temp.c
@@
-41,6
+41,15
@@
#define _(str) gettext (str)
+/* GNU Hurd doesn't have PATH_MAX. */
+#ifndef PATH_MAX
+# ifdef MAXPATHLEN
+# define PATH_MAX MAXPATHLEN
+# else
+# define PATH_MAX 1024
+# endif
+#endif
+
#ifndef uintptr_t
# define uintptr_t unsigned long
#endif