]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nss: FreeBSD support
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Sun, 27 Mar 2016 18:07:10 +0000 (21:07 +0300)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Wed, 30 Mar 2016 07:21:44 +0000 (10:21 +0300)
commit45408cd892bd098e8ac561c09a05766b152c2012
tree2570f0f4bacd403979783fb2815a85901e40eb97
parente23a640c4215e358d80df675fc6040f8c04eaa84
nss: FreeBSD support

 * tools/nss/libvirt_nss.[ch]: add BSD-comptabile wrappers and
   register via the nss_module_register() interface
 * m4/virt-nss.m4: add checks if we're building NSS for FreeBSD
 * tools/Makefile.am: handle target library name differences, as
   Linux needs libnss_libvirt.so.2 and FreeBSD needs
   nss_libvirt.so.1. Also, different syms files have to be used
   as Linux needs to export all the methods while FreeBSD
   only needs to have nss_module_register()
 * tests/nsstest.c, tests/nssmock.c: s/__linux__/NSS/
 * tests/nssmock.c: pass int instead of mode_t to va_arg() to please
   gcc 4.8
 * libvirt_nss_bsd.syms: FreeBSD syms file
m4/virt-nss.m4
tests/nssmock.c
tests/nsstest.c
tools/Makefile.am
tools/nss/libvirt_nss.c
tools/nss/libvirt_nss.h
tools/nss/libvirt_nss_bsd.syms [new file with mode: 0644]