From a9623c29c25f04813a1e5bd8b524d5afa22d77ba Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 30 Jul 2012 11:01:32 -0400 Subject: [PATCH] Fix SELinux build --- plugins/sudoers/toke.c | 2 +- plugins/sudoers/toke.l | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)) -- 2.50.1