mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
nss: Finish renaming of HAVE_BSD_NSS macro
When switching to meson, some of HAVE_* macros were renamed to
WITH_ because they did not reflect whether the build platform has
or doesn't have something, but whether we are building with some
functionality turned on or off. This is the case with
HAVE_BSD_NSS macro too. As a result, the NSS plugin built on BSD
did not expose nss_module_register() function which made the
plugin unusable:
https://www.redhat.com/archives/libvir-list/2020-September/msg00000.html
Fixes: c742687055
Reported-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
ab02e1d5e1
commit
31fb929eca
@ -37,7 +37,7 @@
|
||||
#include <time.h>
|
||||
|
||||
|
||||
#if defined(HAVE_BSD_NSS)
|
||||
#if defined(WITH_BSD_NSS)
|
||||
# include <nsswitch.h>
|
||||
#endif
|
||||
|
||||
@ -451,7 +451,7 @@ NSS_NAME(gethostbyname4)(const char *name, struct gaih_addrtuple **pat,
|
||||
}
|
||||
#endif /* HAVE_STRUCT_GAIH_ADDRTUPLE */
|
||||
|
||||
#if defined(HAVE_BSD_NSS)
|
||||
#if defined(WITH_BSD_NSS)
|
||||
NSS_METHOD_PROTOTYPE(_nss_compat_getaddrinfo);
|
||||
NSS_METHOD_PROTOTYPE(_nss_compat_gethostbyname2_r);
|
||||
|
||||
@ -598,4 +598,4 @@ nss_module_register(const char *name __attribute__((unused)),
|
||||
*unregister = NULL;
|
||||
return methods;
|
||||
}
|
||||
#endif /* HAVE_BSD_NSS */
|
||||
#endif /* WITH_BSD_NSS */
|
||||
|
@ -84,8 +84,8 @@ NSS_NAME(gethostbyname4)(const char *name, struct gaih_addrtuple **pat,
|
||||
int *herrnop, int32_t *ttlp);
|
||||
#endif /* HAVE_STRUCT_GAIH_ADDRTUPLE */
|
||||
|
||||
#if defined(HAVE_BSD_NSS)
|
||||
#if defined(WITH_BSD_NSS)
|
||||
ns_mtab*
|
||||
nss_module_register(const char *name, unsigned int *size,
|
||||
nss_module_unregister_fn *unregister);
|
||||
#endif /* HAVE_BSD_NSS */
|
||||
#endif /* WITH_BSD_NSS */
|
||||
|
Loading…
Reference in New Issue
Block a user