libc/pwd: Add NSS_BUFLEN_PASSWD macro

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I739679038b2004cc45d78f540831ba81b088a586
This commit is contained in:
Xiang Xiao 2021-05-10 01:22:41 +08:00 committed by Abdelatif Guettouche
parent 9b4014d048
commit 6ebc1b27fa
1 changed files with 6 additions and 0 deletions

View File

@ -34,6 +34,12 @@
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_LIBC_PASSWD_LINESIZE
# define NSS_BUFLEN_PASSWD CONFIG_LIBC_PASSWD_LINESIZE
#else
# define NSS_BUFLEN_PASSWD 256
#endif
/**************************************************************************** /****************************************************************************
* Public Type Definitions * Public Type Definitions
****************************************************************************/ ****************************************************************************/