aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2010-04-20 13:30:07 +0200
committerAndreas Schneider <mail@cynapses.org>2010-04-20 13:30:07 +0200
commit833903e8ec23977ff8dde0be10717ccec0f85202 (patch)
tree31a69dc57e4d3b69ab6b1f9d16b7983de77e5969
parentc53383a3160f3b33fbc60f3665cef5a617735f87 (diff)
downloadlibssh-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.
-rw-r--r--tests/unittests/torture_options.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unittests/torture_options.c b/tests/unittests/torture_options.c
index 380896fc..9bc84a04 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];