checkpolicy: fixup includes with glibc-2.26

+6 -5
+6 -5
pkgs/os-specific/linux/checkpolicy/default.nix
··· 10 10 sha256 = "1m5wjm43lzp6bld8higsvdm2dkddydihhwv9qw2w9r4dm0largcv"; 11 11 }; 12 12 13 + # Don't build tests 14 + postPatch = '' 15 + sed '/-C test/d' -i Makefile 16 + sed '1i#include <ctype.h>' -i checkpolicy.c 17 + ''; 18 + 13 19 nativeBuildInputs = [ bison flex ]; 14 20 buildInputs = [ libsepol ]; 15 21 16 22 NIX_CFLAGS_COMPILE = "-fstack-protector-all"; 17 - 18 - # Don't build tests 19 - postPatch = '' 20 - sed -i '/-C test/d' Makefile 21 - ''; 22 23 23 24 preBuild = '' 24 25 makeFlagsArray+=("LEX=flex")