configd: fix build with clang 16

This is an additional fix for clang 16, which fails due to an undeclared
symbol. Adding `_DNS_SD_LIBDISPATCH` makes the symbol visible in
`dns_sd.h`, allowing the build to complete successfully.
This commit is contained in:
Randy Eckenrode 2023-06-09 08:42:48 -04:00
parent 7cb8db1c02
commit 550137e330
No known key found for this signature in database
GPG Key ID: 64C1CD4EC2A600D9

View File

@ -13,6 +13,7 @@ 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
];
};