From 76acc70921450fdbf4d8ca01145bfb0bbb783fd6 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Mon, 8 May 2023 08:47:10 +0200 Subject: tests: define PATH_MAX if not available PATH_MAX is optional in POSIX, and not defined on GNU/Hurd; since these sources are tests, it is fine to hardcoded a fallback value that allows the tests to build and run. --- libpam/include/test_assert.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libpam') diff --git a/libpam/include/test_assert.h b/libpam/include/test_assert.h index 9d30d62f..467f52b6 100644 --- a/libpam/include/test_assert.h +++ b/libpam/include/test_assert.h @@ -11,6 +11,7 @@ # include # endif +# include # include # include @@ -52,4 +53,8 @@ ASSERT_((expected_), #expected_, >=, (seen_), #seen_) \ /* End of ASSERT_LT definition. */ +# ifndef PATH_MAX +# define PATH_MAX 4096 +# endif + #endif /* TEST_ASSERT_H */ -- cgit v1.2.1