dmd: fixup build with glibc-2.25

This commit is contained in:
Vladimír Čunát 2017-02-21 18:20:06 +01:00
parent cab0b445be
commit 723f23d291
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -19,7 +19,11 @@ stdenv.mkDerivation {
# Was not able to compile on darwin due to "__inline_isnanl"
# being undefined.
substituteInPlace src/dmd/root/port.c --replace __inline_isnanl __inline_isnan
'';
''
+ stdenv.lib.optionalString stdenv.isLinux ''
substituteInPlace src/dmd/root/port.c \
--replace "#include <bits/mathdef.h>" "#include <complex.h>"
'';
# Buid and install are based on http://wiki.dlang.org/Building_DMD
buildPhase = ''