include/c: add NAME_MAX compat

Upstreamed from pkgsrc.

Addresses: https://github.com/karelzak/util-linux/pull/695
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Sevan Janiyan 2018-09-29 14:50:04 +01:00 committed by Karel Zak
parent ef2ce68b1f
commit 7d5976f89a
1 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,10 @@
# define LOGIN_NAME_MAX 256
#endif
#ifndef NAME_MAX
# define NAME_MAX PATH_MAX
#endif
/*
* Compiler-specific stuff
*/