--- a/source4/torture/local/nss_tests.c Tue Jul 21 05:47:50 2015 +++ b/source4/torture/local/nss_tests.c Mon Sep 14 11:51:08 2015 @@ -349,7 +349,11 @@ while (1) { torture_comment(tctx, "Testing getpwent_r\n"); +#ifdef SOLARIS_GETPWENT_R + ret = getpwent_r(&pwd, buffer, sizeof(buffer)); +#else /* SOLARIS_GETPWENT_R */ ret = getpwent_r(&pwd, buffer, sizeof(buffer), &pwdp); +#endif /* SOLARIS_GETPWENT_R */ if (ret != 0) { if (ret != ENOENT) { torture_comment(tctx, "got %d return code\n", ret); @@ -543,7 +547,11 @@ while (1) { torture_comment(tctx, "Testing getgrent_r\n"); +#ifdef SOLARIS_GETGRENT_R + ret = getgrent_r(&grp, buffer, sizeof(buffer)); +#else /* SOLARIS_GETGRENT_R */ ret = getgrent_r(&grp, buffer, sizeof(buffer), &grpp); +#endif /* SOLARIS_GETGRENT_R */ if (ret != 0) { if (ret != ENOENT) { torture_comment(tctx, "got %d return code\n", ret);