mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-04 03:27:38 +03:00
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 New Issue
Block a user