mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
torture: Fix compiling options test if NSS_BUFLEN_PASSWD isn't defined.
Thanks to Xi Wang for the patch.
This commit is contained in:
@@ -70,6 +70,9 @@ START_TEST (torture_options_set_user)
|
|||||||
{
|
{
|
||||||
int rc;
|
int rc;
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
|
#ifndef NSS_BUFLEN_PASSWD
|
||||||
|
#define NSS_BUFLEN_PASSWD 4096
|
||||||
|
#endif
|
||||||
struct passwd pwd;
|
struct passwd pwd;
|
||||||
struct passwd *pwdbuf;
|
struct passwd *pwdbuf;
|
||||||
char buf[NSS_BUFLEN_PASSWD];
|
char buf[NSS_BUFLEN_PASSWD];
|
||||||
|
|||||||
Reference in New Issue
Block a user