txr: add include to fix w/musl

This commit is contained in:
Will Dietz 2019-11-20 00:32:39 -06:00
parent 68d725d0fd
commit 2dd40bf158
No known key found for this signature in database
GPG key ID: EBB0EA4124809D02

View file

@ -12,6 +12,11 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ bison flex ];
buildInputs = [ libffi ];
# fix usage of off_t without include
postPatch = ''
sed -i '1i#include <sys/types.h>' sysif.h
'';
enableParallelBuilding = true;
doCheck = true;