changeset 15285:2e40714e3fb0

getcwd tests: Avoid compilation error on HP-UX 11.31. * modules/getcwd-tests (Depends-on): Add pathmax. * tests/test-getcwd.c: Include pathmax.h.
author Bruno Haible <bruno@clisp.org>
date Sat, 18 Jun 2011 22:22:23 +0200
parents 85f546d97fb5
children 77d3a3059f17
files ChangeLog modules/getcwd-tests tests/test-getcwd.c
diffstat 3 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-06-18  Bruno Haible  <bruno@clisp.org>
+
+	getcwd tests: Avoid compilation error on HP-UX 11.31.
+	* modules/getcwd-tests (Depends-on): Add pathmax.
+	* tests/test-getcwd.c: Include pathmax.h.
+
 2011-06-18  Bruno Haible  <bruno@clisp.org>
 
 	isfinite, isinf: Fix link error on AIX 6 and 7.
--- a/modules/getcwd-tests
+++ b/modules/getcwd-tests
@@ -5,6 +5,7 @@
 errno
 fcntl-h
 getcwd-lgpl
+pathmax
 sys_stat
 
 configure.ac:
--- a/tests/test-getcwd.c
+++ b/tests/test-getcwd.c
@@ -26,6 +26,7 @@
 #include <string.h>
 #include <sys/stat.h>
 
+#include "pathmax.h"
 #include "macros.h"
 
 #if ! HAVE_GETPAGESIZE