libasyncns: fix build for darwin
This commit is contained in:
parent
5e560c4e24
commit
a907da6e63
|
@ -9,6 +9,11 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "0x5b6lcic4cd7q0bx00x93kvpyzl7n2abbgvqbrlzrfb8vknc6jg";
|
||||
};
|
||||
|
||||
postPatch = lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace libasyncns/asyncns.c \
|
||||
--replace '<arpa/nameser.h>' '<arpa/nameser_compat.h>'
|
||||
'';
|
||||
|
||||
configureFlags = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
||||
"ac_cv_func_malloc_0_nonnull=yes"
|
||||
"ac_cv_func_realloc_0_nonnull=yes"
|
||||
|
|
Loading…
Reference in a new issue