From 632b1cf7b38f0c6425a81f004334343d7a77f520 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 9 Jun 2023 15:39:27 +0000 Subject: Add SKALIBS_NAME_MAX Signed-off-by: Laurent Bercot --- src/include/skalibs/posixishard.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/include') diff --git a/src/include/skalibs/posixishard.h b/src/include/skalibs/posixishard.h index c7b3361..ecf4f9b 100644 --- a/src/include/skalibs/posixishard.h +++ b/src/include/skalibs/posixishard.h @@ -33,4 +33,10 @@ extern size_t strnlen (char const *, size_t) gccattr_pure ; #define SKALIBS_PATH_MAX 4096 #endif +#ifdef NAME_MAX +#define SKALIBS_NAME_MAX NAME_MAX +#else +#define SKALIBS_NAME_MAX 255 +#endif + #endif -- cgit v1.2.3