Blame SOURCES/glibc-deprecated-selinux-nscd.patch

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