From 76acc70921450fdbf4d8ca01145bfb0bbb783fd6 Mon Sep 17 00:00:00 2001
From: Pino Toscano <toscano.pino@tiscali.it>
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.
---
 tests/tst-dlopen.c | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'tests/tst-dlopen.c')

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)
 {
-- 
cgit v1.2.3