chaps: fix build against glibc 2.24
Ignore errors due to using deprecated readdir_r(3).
commitc4dc998b69312571deece921a5378448b4c153d9
authorJoachim Fasting <joachifm@fastmail.fm>
dateFri 26 Aug 2016, 23:46 (10 years ago)
parentcbd8d13
pkgs/tools/security/chaps/default.nix+3
@@ -31,6 +31,9 @@ stdenv.mkDerivation rec {
3131 sha256 = "0chk6pnn365d5kcz6vfqx1d0383ksk97icc0lzg0vvb0kvyj0ff1";
3232 };
3333
34+ # readdir_r(3) is deprecated in glibc >= 2.24
35+ NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
36+
3437 patches = [ ./fix_absolute_path.patch ./fix_environment_variables.patch ./fix_scons.patch ./insert_prefetches.patch ];
3538
3639 postPatch = ''