From: Karel Zak Date: Fri, 3 Feb 2012 11:35:36 +0000 (+0100) Subject: libmount: use #ifdef fr selinux specific variables X-Git-Tag: v2.21-rc2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=178537eda9b3a5c40bb62ebdfe4c7a1e9917b58c;p=thirdparty%2Futil-linux.git libmount: use #ifdef fr selinux specific variables Signed-off-by: Karel Zak --- diff --git a/libmount/src/context_mount.c b/libmount/src/context_mount.c index c39d8d45a9..d38aa16bee 100644 --- a/libmount/src/context_mount.c +++ b/libmount/src/context_mount.c @@ -27,12 +27,14 @@ */ 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));