Merge #267079: darwin.mDNSResponder: patch header to match SDK

...into staging-next
This commit is contained in:
Vladimír Čunát 2023-11-12 18:27:40 +01:00
commit 2c237f6180
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA
2 changed files with 4 additions and 2 deletions

View File

@ -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
];
};

View File

@ -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'
'';
}