From: Todd C. Miller Date: Mon, 30 Jul 2012 15:01:32 +0000 (-0400) Subject: Fix SELinux build X-Git-Tag: SUDO_1_8_6^2~73 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9623c29c25f04813a1e5bd8b524d5afa22d77ba;p=sudo Fix SELinux build --- diff --git a/plugins/sudoers/toke.c b/plugins/sudoers/toke.c index 219f8b584..7390e4a77 100644 --- a/plugins/sudoers/toke.c +++ b/plugins/sudoers/toke.c @@ -2277,7 +2277,7 @@ case 44: YY_RULE_SETUP #line 525 "toke.l" { -#ifndef HAVE_SELINUX +#if defined(HAVE_SELINUX) || !defined(HAVE_PRIV_SET) got_alias: #endif if (!fill(yytext, yyleng)) diff --git a/plugins/sudoers/toke.l b/plugins/sudoers/toke.l index 36f2f283b..cbb3271d3 100644 --- a/plugins/sudoers/toke.l +++ b/plugins/sudoers/toke.l @@ -523,7 +523,7 @@ ALL { } [[:upper:]][[:upper:][:digit:]_]* { -#ifndef HAVE_SELINUX +#if defined(HAVE_SELINUX) || !defined(HAVE_PRIV_SET) got_alias: #endif if (!fill(yytext, yyleng))