diff options
author | Andreas Schneider <mail@cynapses.org> | 2010-04-20 13:30:07 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2010-04-20 13:30:07 +0200 |
commit | 833903e8ec23977ff8dde0be10717ccec0f85202 (patch) | |
tree | 31a69dc57e4d3b69ab6b1f9d16b7983de77e5969 /tests | |
parent | c53383a3160f3b33fbc60f3665cef5a617735f87 (diff) | |
download | libssh-833903e8ec23977ff8dde0be10717ccec0f85202.tar.gz libssh-833903e8ec23977ff8dde0be10717ccec0f85202.tar.xz libssh-833903e8ec23977ff8dde0be10717ccec0f85202.zip |
torture: Fix compiling options test if NSS_BUFLEN_PASSWD isn't defined.
Thanks to Xi Wang for the patch.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unittests/torture_options.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unittests/torture_options.c b/tests/unittests/torture_options.c index 380896f..9bc84a0 100644 --- a/tests/unittests/torture_options.c +++ b/tests/unittests/torture_options.c @@ -70,6 +70,9 @@ START_TEST (torture_options_set_user) { int rc; #ifndef _WIN32 +#ifndef NSS_BUFLEN_PASSWD +#define NSS_BUFLEN_PASSWD 4096 +#endif struct passwd pwd; struct passwd *pwdbuf; char buf[NSS_BUFLEN_PASSWD]; |