]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
include/c: add NAME_MAX compat
authorSevan Janiyan <venture37@geeklan.co.uk>
Sat, 29 Sep 2018 13:50:04 +0000 (14:50 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 3 Oct 2018 13:43:36 +0000 (15:43 +0200)
Upstreamed from pkgsrc.

Addresses: https://github.com/karelzak/util-linux/pull/695
Signed-off-by: Karel Zak <kzak@redhat.com>
include/c.h

index a240f4f6c506ec578bc8a5c598b44d2ecb836edc..b769b5843440dc14da8838c916e4fe75348d00cc 100644 (file)
 # define LOGIN_NAME_MAX 256
 #endif
 
+#ifndef NAME_MAX
+# define NAME_MAX PATH_MAX
+#endif
+
 /*
  * Compiler-specific stuff
  */