diff options
-rw-r--r-- | libpam/include/test_assert.h | 5 | ||||
-rw-r--r-- | tests/tst-dlopen.c | 4 |
2 files changed, 9 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 */ diff --git a/tests/tst-dlopen.c b/tests/tst-dlopen.c index 70927163..00e14543 100644 --- a/tests/tst-dlopen.c +++ b/tests/tst-dlopen.c @@ -16,6 +16,10 @@ #include <limits.h> #include <sys/stat.h> +#ifndef PATH_MAX +# define PATH_MAX 4096 +#endif + /* Simple program to see if dlopen() would succeed. */ int main(int argc, char **argv) { |