commit 632b1cf7b38f0c6425a81f004334343d7a77f520 parent 86c79f77a6c0191098b6ccbe31aae7d42f5e6893 Author: Laurent Bercot <ska-skaware@skarnet.org> Date: Fri, 9 Jun 2023 15:39:27 +0000 Add SKALIBS_NAME_MAX Signed-off-by: Laurent Bercot <ska@appnovation.com> Diffstat:
M | src/include/skalibs/posixishard.h | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git 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