Unverified Commit 2c237f61 authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

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

...into staging-next
parents 1b3033eb 55bf8aa8
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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 −1
Original line number Diff line number Diff line
@@ -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'
  '';
}