policycoreutils: newrole: add missing defined in #if

When building newrole with gcc 5.3.0 and some warning flags, the
compiler reports:

  newrole.c:77:33: error: "NAMESPACE_PRIV" is not defined [-Werror=undef]
  #if defined(AUDIT_LOG_PRIV) || (NAMESPACE_PRIV)
                                  ^

Indeed, "defined" is missing here.  This nevertheless worked so far
because when NAMESPACE_PRIV was selected in the Makefile, newrole.c was
compiled with "-DNAMESPACE_PRIV", which defined NAMESPACE_PRIV to 1.

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
Nicolas Iooss 2016-01-19 17:18:28 +01:00 committed by Steve Lawrence
parent 302443cbbb
commit d1b49d833e
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@
#ifdef USE_AUDIT #ifdef USE_AUDIT
#include <libaudit.h> #include <libaudit.h>
#endif #endif
#if defined(AUDIT_LOG_PRIV) || (NAMESPACE_PRIV) #if defined(AUDIT_LOG_PRIV) || defined(NAMESPACE_PRIV)
#include <sys/prctl.h> #include <sys/prctl.h>
#include <cap-ng.h> #include <cap-ng.h>
#endif #endif