ldb: Fix an unused variable warning
authorVolker Lendecke <vl@samba.org>
Mon, 21 Nov 2016 20:41:51 +0000 (21:41 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 30 Nov 2016 19:36:24 +0000 (20:36 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
lib/ldb/common/ldb_modules.c

index 0c740afaeb5bdf702b60868173ac14e22b5117ea..62f20af1920befb6427c539fc5598218b0bc4dc4 100644 (file)
@@ -901,7 +901,10 @@ static int ldb_modules_load_path(const char *path, const char *version)
        } *loaded;
        struct loaded *le;
        int dlopen_flags;
+
+#ifdef RTLD_DEEPBIND
        bool deepbind_enabled = (getenv("LDB_MODULES_DISABLE_DEEPBIND") == NULL);
+#endif
 
        ret = stat(path, &st);
        if (ret != 0) {