From af429b6afa5c2b75b64385237004ee3def3f2d0a Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Tue, 7 Nov 2023 20:32:34 -0600 Subject: [PATCH] Update: Fall back to MAXNAMLEN if NAME_MAX is not available. On systems like BSD, MAXNAMLEN is available in place of NAME_MAX. --- level_0/f_directory/c/directory/common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/level_0/f_directory/c/directory/common.h b/level_0/f_directory/c/directory/common.h index 39ddce7..2fc6198 100644 --- a/level_0/f_directory/c/directory/common.h +++ b/level_0/f_directory/c/directory/common.h @@ -97,6 +97,8 @@ extern "C" { #ifdef NAME_MAX #define F_directory_max_name_d NAME_MAX + #elif MAXNAMLEN + #define F_directory_max_name_d MAXNAMLEN #else #define F_directory_max_name_d 255 #endif // NAME_MAX -- 1.8.3.1