From: Sevan Janiyan Date: Sat, 29 Sep 2018 13:50:04 +0000 (+0100) Subject: include/c: add NAME_MAX compat X-Git-Tag: v2.33-rc2~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7d5976f89a256e8fc305649afd13905d352c594b;p=thirdparty%2Futil-linux.git include/c: add NAME_MAX compat Upstreamed from pkgsrc. Addresses: https://github.com/karelzak/util-linux/pull/695 Signed-off-by: Karel Zak --- diff --git a/include/c.h b/include/c.h index a240f4f6c5..b769b58434 100644 --- a/include/c.h +++ b/include/c.h @@ -29,6 +29,10 @@ # define LOGIN_NAME_MAX 256 #endif +#ifndef NAME_MAX +# define NAME_MAX PATH_MAX +#endif + /* * Compiler-specific stuff */