summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-06-09 15:39:27 +0000
committerLaurent Bercot <ska@appnovation.com>2023-06-09 15:39:27 +0000
commit632b1cf7b38f0c6425a81f004334343d7a77f520 (patch)
treeba2fc9a96faee69f6a5d7c41330b9dbae70c0b76 /src
parent86c79f77a6c0191098b6ccbe31aae7d42f5e6893 (diff)
downloadskalibs-632b1cf7b38f0c6425a81f004334343d7a77f520.tar.xz
Add SKALIBS_NAME_MAX
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
-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 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