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:
parent
ef2ce68b1f
commit
7d5976f89a
|
@ -29,6 +29,10 @@
|
|||
# define LOGIN_NAME_MAX 256
|
||||
#endif
|
||||
|
||||
#ifndef NAME_MAX
|
||||
# define NAME_MAX PATH_MAX
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Compiler-specific stuff
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue