Merge #267079: darwin.mDNSResponder: patch header to match SDK
...into staging-next
This commit is contained in:
commit
2c237f6180
@ -21,7 +21,6 @@ appleDerivation' stdenv {
|
||||
NIX_CFLAGS_COMPILE = toString [
|
||||
"-ISystemConfiguration.framework/Headers"
|
||||
"-I${xnu}/Library/Frameworks/System.framework/Versions/B/PrivateHeaders"
|
||||
"-D_DNS_SD_LIBDISPATCH" # Needed for DNSServiceSetDispatchQueue to be available
|
||||
];
|
||||
};
|
||||
|
||||
|
@ -4,6 +4,9 @@ appleDerivation' stdenvNoCC {
|
||||
dontBuild = true;
|
||||
installPhase = ''
|
||||
mkdir -p $out/include
|
||||
cp mDNSShared/dns_sd.h $out/include
|
||||
# TODO: Do this only for 765.50.9 once there is a way to apply version-specific
|
||||
# logic in a source-release derivation.
|
||||
substitute mDNSShared/dns_sd.h $out/include/dns_sd.h \
|
||||
--replace '#define _DNS_SD_LIBDISPATCH 0' '#define _DNS_SD_LIBDISPATCH 1'
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user