diff options
author | Pino Toscano <toscano.pino@tiscali.it> | 2023-05-08 08:47:10 +0200 |
---|---|---|
committer | Pino Toscano <toscano.pino@tiscali.it> | 2023-05-11 07:12:49 +0200 |
commit | 76acc70921450fdbf4d8ca01145bfb0bbb783fd6 (patch) | |
tree | bb08eccdaa251771e2668b2183a66746c0c2789f /libpam/include | |
parent | bf07335a19d6192adaf4b1a817d2101ee0bad134 (diff) | |
download | pam-76acc70921450fdbf4d8ca01145bfb0bbb783fd6.tar.gz pam-76acc70921450fdbf4d8ca01145bfb0bbb783fd6.tar.bz2 pam-76acc70921450fdbf4d8ca01145bfb0bbb783fd6.zip |
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.
Diffstat (limited to 'libpam/include')
-rw-r--r-- | libpam/include/test_assert.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 <config.h> # endif +# include <limits.h> # include <stdio.h> # include <stdlib.h> @@ -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 */ |