fatrace: fixup build with glibc-2.25

This commit is contained in:
Vladimír Čunát 2017-02-21 18:35:57 +01:00
parent cc8104f9bb
commit c986f4f894
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -14,6 +14,9 @@ stdenv.mkDerivation rec {
postPatch = ''
substituteInPlace power-usage-report \
--replace "'which'" "'${which}/bin/which'"
# Avoid a glibc >= 2.25 deprecation warning that gets fatal via -Werror.
sed 1i'#include <sys/sysmacros.h>' -i fatrace.c
'';
makeFlags = [ "PREFIX=$(out)" ];