mirror of https://github.com/c-ares/c-ares.git
parent
45ba9bcfd8
commit
23392f5dc6
3 changed files with 37 additions and 28 deletions
@ -1,12 +1,18 @@ |
||||
The `dnsinfo.h` header was extracted from Apple's OpenSource repository: |
||||
[https://opensource.apple.com/source/configd/configd-963.50.8/dnsinfo/dnsinfo.h](https://opensource.apple.com/source/configd/configd-963.50.8/dnsinfo/dnsinfo.h) |
||||
[https://opensource.apple.com/source/configd/configd-453.19/dnsinfo/dnsinfo.h](https://opensource.apple.com/source/configd/configd-453.19/dnsinfo/dnsinfo.h) |
||||
|
||||
We did make one tweak to this file to put `(void)` as the parameter list for both `dns_configuration_notify_key()` |
||||
and `dns_configuration_copy()` to sidestep compiler warnings in this old header. |
||||
We then had to make a few edits to this file: |
||||
1. Add `AvailabilityMacros.h` header file |
||||
2. conditionalize `reach_flags` in `dns_resolver_t` on MacOS 10.8 or higher, in |
||||
order to maintain compatibility with the last MacOS PPC release, 10.6. |
||||
3. conditionalize `_dns_configuration_ack()` on MacOS 10.8 or higher. |
||||
4. Update parameter list to `(void)` for both `dns_configuration_notify_key()` |
||||
and `dns_configuration_copy()` to sidestep compiler warnings in this old |
||||
header. |
||||
|
||||
NOTE: For legacy MacOS compatibility, we needed to import 963.50.8. We tried with the |
||||
latest (at this time) of 1109.140.1, and it caused issues with MacPorts still supporting |
||||
MacOS versions 10.8-10.11. There's really not any reason to not support these if it doesn't |
||||
take much effort if MacPorts still is. |
||||
We had tried initially to use the latest 1109.140.1 which only worked on |
||||
MacOS 11+, then downgraded to 963.50.8 for MacOS 10.8+ support, then finally |
||||
to 453.19 with additional patches. |
||||
|
||||
This is needed to call into `dns_configuration_copy()` and `dns_configuration_free()`. |
||||
This is needed to call into `dns_configuration_copy()` and |
||||
`dns_configuration_free()`. |
||||
|
Loading…
Reference in new issue