1554837
This patch works around deprecated libselinux features used by nscd.
1554837
1554837
diff --git a/nscd/selinux.c b/nscd/selinux.c
1554837
index a4ea8008e201b939..0acca4639202a75a 100644
1554837
--- a/nscd/selinux.c
1554837
+++ b/nscd/selinux.c
1554837
@@ -17,6 +17,10 @@
1554837
    License along with the GNU C Library; if not, see
1554837
    <https://www.gnu.org/licenses/>.  */
1554837
 
1554837
+/* This file uses deprecated declarations from libselinux.  */
1554837
+#include <libc-diag.h>
1554837
+DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Wdeprecated-declarations");
1554837
+
1554837
 #include "config.h"
1554837
 #include <error.h>
1554837
 #include <errno.h>