]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/idmapd/idmapd.c
Detect presence of nfs4_set_debug() in libnfsidmap and
[nfs-utils.git] / utils / idmapd / idmapd.c
index 158feaf66c11627beb931ab253d7c56cb9722c6b..c8ce6b2db54e305d6cf57aeb8541584490b44e7f 100644 (file)
@@ -345,7 +345,9 @@ main(int argc, char **argv)
                errx(1, "Could not find group \"%s\"", nobodygroup);
        nobodygid = gr->gr_gid;
 
+#ifdef HAVE_NFS4_SET_DEBUG
        nfs4_set_debug(verbose, idmapd_warnx);
+#endif
        if (conf_path == NULL)
                conf_path = _PATH_IDMAPDCONF;
        if (nfs4_init_name_mapping(conf_path))