From 7d5976f89a256e8fc305649afd13905d352c594b Mon Sep 17 00:00:00 2001 From: Sevan Janiyan Date: Sat, 29 Sep 2018 14:50:04 +0100 Subject: include/c: add NAME_MAX compat Upstreamed from pkgsrc. Addresses: https://github.com/karelzak/util-linux/pull/695 Signed-off-by: Karel Zak --- include/c.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/c.h') diff --git a/include/c.h b/include/c.h index a240f4f6c..b769b5843 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 */ -- cgit v1.2.3-55-g7522