nscd: drop selinux/flask.h include

Building nscd w/selinux enabled yields a warning which yields an error:
In file included from selinux.c:32:0:
/usr/include/selinux/flask.h:5:2: error:
 #warning "Please remove any #include's of this header in your source code."

I've done just that and it builds cleanly with libselinux-2.4.
This commit is contained in:
Mike Frysinger 2015-05-30 14:55:16 -04:00
parent 61d95397de
commit 8086966968
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2015-07-08 Mike Frysinger <vapier@gentoo.org>
* nscd/selinux.c: Delete selinux/flask.h include.
2015-07-08 Mike Frysinger <vapier@gentoo.org>
[BZ #18641]

View File

@ -29,7 +29,6 @@
#include <unistd.h>
#include <sys/prctl.h>
#include <selinux/avc.h>
#include <selinux/flask.h>
#include <selinux/selinux.h>
#ifdef HAVE_LIBAUDIT
# include <libaudit.h>