rr: fix build after gcc-5.4 bump

Discussion: https://github.com/NixOS/nixpkgs/commit/772c92ba5c60a
This commit is contained in:
Vladimír Čunát 2016-06-13 10:11:45 +02:00
parent ab450c0909
commit e9c612cdfe

@ -11,8 +11,9 @@ stdenv.mkDerivation rec {
sha256 = "03fl2wgbc1cilaw8hrhfqjsbpi05cid6k4cr3s2vmv5gx0dnrgy4";
};
patchPhase = ''
postPatch = ''
substituteInPlace src/Command.cc --replace '_BSD_SOURCE' '_DEFAULT_SOURCE'
sed '7i#include "math.h"' -i src/Scheduler.cc
patchShebangs .
'';