]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: use #ifdef fr selinux specific variables
authorKarel Zak <kzak@redhat.com>
Fri, 3 Feb 2012 11:35:36 +0000 (12:35 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 3 Feb 2012 11:35:36 +0000 (12:35 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context_mount.c

index c39d8d45a94259d9a62fbe67310a683749cdaa2f..d38aa16bee2045db13360440c1c4ed03357f1d47 100644 (file)
  */
 static int fix_optstr(struct libmnt_context *cxt)
 {
-       int rc = 0, se_rem = 0, se_fix = 0;
+       int rc = 0;
        char *next;
        char *name, *val;
        size_t namesz, valsz;
        struct libmnt_fs *fs;
-
+#ifdef HAVE_LIBSELINUX
+       int se_fix = 0, se_rem = 0;
+#endif
        assert(cxt);
        assert(cxt->fs);
        assert((cxt->flags & MNT_FL_MOUNTFLAGS_MERGED));