diff options
author | Ruediger Meier | 2016-02-07 14:10:27 +0100 |
---|---|---|
committer | Ruediger Meier | 2016-02-18 16:54:14 +0100 |
commit | 06c8aec38cc3b5b3f509e381962192329776f79b (patch) | |
tree | 241065bd4178b6e4283e533b4976579b5f8aa17d /lib/idcache.c | |
parent | include: provide MAP_ANONYMOUS on OSX (diff) | |
download | kernel-qcow2-util-linux-06c8aec38cc3b5b3f509e381962192329776f79b.tar.gz kernel-qcow2-util-linux-06c8aec38cc3b5b3f509e381962192329776f79b.tar.xz kernel-qcow2-util-linux-06c8aec38cc3b5b3f509e381962192329776f79b.zip |
lib: define LOGIN_NAME_MAX fallback
LOGIN_NAME_MAX was unused in misc-utils/namei.c since 04a5cb58.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'lib/idcache.c')
-rw-r--r-- | lib/idcache.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/idcache.c b/lib/idcache.c index 4cb20fd2d..3c358b8a8 100644 --- a/lib/idcache.c +++ b/lib/idcache.c @@ -7,6 +7,10 @@ #include "c.h" #include "idcache.h" +#ifndef LOGIN_NAME_MAX +#define LOGIN_NAME_MAX 256 +#endif + struct identry *get_id(struct idcache *ic, unsigned long int id) { struct identry *ent; |