summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-01-31 10:44:57 +0000
committerLaurent Bercot <ska@appnovation.com>2023-01-31 10:44:57 +0000
commit0a6f6d93952cdddd087e8f86f3dce4e8b06c6cde (patch)
tree65f81c645444cbadc96b4e19ccf8c1476aa090b8
parent9620ff2d6f16ccd16e027bcb5ada961d9d0b8fc0 (diff)
downloadskalibs-0a6f6d93952cdddd087e8f86f3dce4e8b06c6cde.tar.xz
Define SKALIBS_PATH_MAX
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--src/include/skalibs/posixishard.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/skalibs/posixishard.h b/src/include/skalibs/posixishard.h
index b5da077..c7b3361 100644
--- a/src/include/skalibs/posixishard.h
+++ b/src/include/skalibs/posixishard.h
@@ -27,4 +27,10 @@ extern size_t strnlen (char const *, size_t) gccattr_pure ;
#define MSG_NOSIGNAL 0
#endif
+#ifdef PATH_MAX
+#define SKALIBS_PATH_MAX PATH_MAX
+#else
+#define SKALIBS_PATH_MAX 4096
+#endif
+
#endif