summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSevan Janiyan2018-09-29 15:50:04 +0200
committerKarel Zak2018-10-03 15:43:36 +0200
commit7d5976f89a256e8fc305649afd13905d352c594b (patch)
treefb5b84f131d617ad9351e4ebec9b7ea7dd5b19f5 /include
parentlsblk: always use "part" as TYPE for partitions (diff)
downloadkernel-qcow2-util-linux-7d5976f89a256e8fc305649afd13905d352c594b.tar.gz
kernel-qcow2-util-linux-7d5976f89a256e8fc305649afd13905d352c594b.tar.xz
kernel-qcow2-util-linux-7d5976f89a256e8fc305649afd13905d352c594b.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/c.h4
1 files changed, 4 insertions, 0 deletions
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
*/