diff options
author | Kai Blin <kai@samba.org> | 2007-06-09 07:17:24 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:53:15 -0500 |
commit | c2dc9a4d7c2d74698d7ed74057137528c9a71b09 (patch) | |
tree | 873a46ce4370a7d3214636f40ecf74a7cf2c9671 /source4/torture/nsstest.c | |
parent | 38af1b1c05ad91b568c329d3e74c284c78b87e06 (diff) | |
download | samba-c2dc9a4d7c2d74698d7ed74057137528c9a71b09.tar.gz samba-c2dc9a4d7c2d74698d7ed74057137528c9a71b09.tar.bz2 samba-c2dc9a4d7c2d74698d7ed74057137528c9a71b09.zip |
r23403: Make nsstest build on Samba4.
For now, only build on Linux systems. If the build farm is happy with this,
I will gradually turn on this feature for other platforms, too.
(This used to be commit c2d4cc1c61d7b39de2139de836dbbdb6c2edf8bb)
Diffstat (limited to 'source4/torture/nsstest.c')
-rw-r--r-- | source4/torture/nsstest.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/torture/nsstest.c b/source4/torture/nsstest.c index 376edada56..0fc2baf068 100644 --- a/source4/torture/nsstest.c +++ b/source4/torture/nsstest.c @@ -20,6 +20,8 @@ #include "includes.h" +#include "torture/nsstest.h" + static const char *so_path = "/lib/libnss_winbind.so"; static const char *nss_name = "winbind"; static int nss_errno; @@ -35,13 +37,13 @@ static void *find_fn(const char *name) snprintf(s,sizeof(s), "_nss_%s_%s", nss_name, name); if (!h) { - h = sys_dlopen(so_path, RTLD_LAZY); + h = dlopen(so_path, RTLD_LAZY); } if (!h) { printf("Can't open shared library %s\n", so_path); exit(1); } - res = sys_dlsym(h, s); + res = dlsym(h, s); if (!res) { printf("Can't find function %s\n", s); return NULL; |