head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.6 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.4 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.2 pkgsrc-2025Q3-base:1.1; locks; strict; comment @# @; 1.1 date 2025.09.06.18.27.52; author riastradh; state Exp; branches; next ; commitid Lpv6w2O9rwsrqG9G; desc @@ 1.1 log @devel/nss_wrapper: Import nss_wrapper-1.1.16 nss_wrapper is an LD_PRELOAD wrapper for the user, group and hosts NSS API for automatically testing applications using the getpwent(3), getgrent(3), gethostent(3), and getaddrinfo(3) families of functions. @ text @$NetBSD$ Add NetBSD support. --- ConfigureChecks.cmake.orig 2024-07-05 05:53:08.000000000 +0000 +++ ConfigureChecks.cmake @@@@ -53,6 +53,7 @@@@ check_include_file(pwd.h HAVE_PWD_H) check_include_file(shadow.h HAVE_SHADOW_H) check_include_file(grp.h HAVE_GRP_H) check_include_file(nss.h HAVE_NSS_H) +check_include_file(nsswitch.h HAVE_NSSWITCH_H) check_include_file(nss_common.h HAVE_NSS_COMMON_H) check_include_file(gnu/lib-names.h HAVE_GNU_LIB_NAMES_H) @@@@ -74,11 +75,13 @@@@ check_function_exists(getgrent_r HAVE_GE check_function_exists(getgrouplist HAVE_GETGROUPLIST) +if (NOT NETBSD) check_function_exists(gethostbyaddr_r HAVE_GETHOSTBYADDR_R) check_function_exists(gethostbyname_r HAVE_GETHOSTBYNAME_R) check_function_exists(gethostbyname2 HAVE_GETHOSTBYNAME2) check_function_exists(gethostbyname2_r HAVE_GETHOSTBYNAME2_R) +endif (NOT NETBSD) check_function_exists(getprogname HAVE_GETPROGNAME) check_function_exists(getexecname HAVE_GETEXECNAME) @