Conditionally disable macOS incompatible tests
authorWill <willhy@gmail.com>
Wed, 8 Nov 2017 03:52:34 +0000 (21:52 -0600)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 17 Dec 2018 00:24:15 +0000 (01:24 +0100)
commitf460bb52ed4393722d58f9e6d30bd0c7e6a51f1d
treef5a94d064115b13683405cb0a83d6703269b4157
parent440ddf8470b11a46066d282bf8945201d547c192
Conditionally disable macOS incompatible tests

Symbols _getgrent_r and _getpwent_r in
source4/torture/local/nss_tests.c are undefined in macOS. It seems
that checking HAVE_GETGRENT_R and HAVE_GETPWENT_R and conditionally
disabling those tests as suggested by hirochachacha in the referenced
bug allows samba on both `master` and `samba-4.7.1` to build properly
on macOS/darwin.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11984

Signed-off-by: Will Haley <willhy@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/torture/local/nss_tests.c