summaryrefslogtreecommitdiffstats
path: root/gnulib-local
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-08-07 15:30:44 +0200
committerBruno Haible <bruno@clisp.org>2011-08-07 15:30:44 +0200
commit8e01905f160bc1b42de595ac73a55b0cedbcce16 (patch)
tree7750a1ae0f8d2ebee57553f492bf690ccd8bbd28 /gnulib-local
parent0126b03f01a65ce543989a1d1f1d73b7d2c65a09 (diff)
downloadexternal_gettext-8e01905f160bc1b42de595ac73a55b0cedbcce16.zip
external_gettext-8e01905f160bc1b42de595ac73a55b0cedbcce16.tar.gz
external_gettext-8e01905f160bc1b42de595ac73a55b0cedbcce16.tar.bz2
Update after gnulib changed.
Diffstat (limited to 'gnulib-local')
-rw-r--r--gnulib-local/ChangeLog5
-rw-r--r--gnulib-local/lib/xgetcwd.c7
2 files changed, 11 insertions, 1 deletions
diff --git a/gnulib-local/ChangeLog b/gnulib-local/ChangeLog
index fef9430..5ce26ec 100644
--- a/gnulib-local/ChangeLog
+++ b/gnulib-local/ChangeLog
@@ -1,3 +1,8 @@
+2011-08-04 Bruno Haible <bruno@clisp.org>
+
+ Update after gnulib changed.
+ * lib/xgetcwd.c (PATH_MAX): Provide a fallback value.
+
2011-07-12 Bruno Haible <bruno@clisp.org>
Update after gnulib changed.
diff --git a/gnulib-local/lib/xgetcwd.c b/gnulib-local/lib/xgetcwd.c
index 0b1016c..b2b8f0b 100644
--- a/gnulib-local/lib/xgetcwd.c
+++ b/gnulib-local/lib/xgetcwd.c
@@ -1,5 +1,5 @@
/* xgetcwd.c -- return current directory with unlimited length
- Copyright (C) 1992, 1996, 2000, 2003, 2005-2006 Free Software Foundation, Inc.
+ Copyright (C) 1992, 1996, 2000, 2003, 2005-2006, 2011 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -26,6 +26,11 @@
#include "pathmax.h"
+/* In this file, PATH_MAX is the size of an initial memory allocation. */
+#ifndef PATH_MAX
+# define PATH_MAX 8192
+#endif
+
#if HAVE_GETCWD
# ifdef VMS
/* We want the directory in Unix syntax, not in VMS syntax. */