summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/tst-dlopen.c4
1 files changed, 4 insertions, 0 deletions
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)
{