From: Kevin Day Date: Wed, 8 Nov 2023 02:32:34 +0000 (-0600) Subject: Update: Fall back to MAXNAMLEN if NAME_MAX is not available. X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=af429b6afa5c2b75b64385237004ee3def3f2d0a;p=fll Update: Fall back to MAXNAMLEN if NAME_MAX is not available. On systems like BSD, MAXNAMLEN is available in place of NAME_MAX. --- 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