more dl* -> sys_dl* for sco
[kai/samba.git] / source3 / torture / nsstest.c
index 3aeaa177a13681c3ce38c4af3864c522b86fc261..c9b068aa046a9c92622832e6a9ec2bceff4d0c67 100644 (file)
@@ -35,13 +35,13 @@ static void *find_fn(const char *name)
        snprintf(s,sizeof(s), "_nss_%s_%s", nss_name, name);
 
        if (!h) {
        snprintf(s,sizeof(s), "_nss_%s_%s", nss_name, name);
 
        if (!h) {
-               h = dlopen(so_path, RTLD_LAZY);
+               h = sys_dlopen(so_path, RTLD_LAZY);
        }
        if (!h) {
                printf("Can't open shared library %s\n", so_path);
                exit(1);
        }
        }
        if (!h) {
                printf("Can't open shared library %s\n", so_path);
                exit(1);
        }
-       res = dlsym(h, s);
+       res = sys_dlsym(h, s);
        if (!res) {
                printf("Can't find function %s\n", s);
                return NULL;
        if (!res) {
                printf("Can't find function %s\n", s);
                return NULL;