iconv: fix build for mips-linux

This commit is contained in:
Alexey Shmalko 2016-07-22 21:22:08 +03:00
parent 5c738ec37e
commit b1e4ed38dd
No known key found for this signature in database
GPG Key ID: DCEF7BCCEB3066C3
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
];
postPatch =
lib.optionalString (stdenv.cross.libc or null == "msvcrt")
lib.optionalString ((stdenv ? cross && stdenv.cross.libc == "msvcrt") || stdenv.cc.nativeLibc)
''
sed '/^_GL_WARN_ON_USE (gets/d' -i srclib/stdio.in.h
'';