WIP: Handle resolv.h regardless of glibc version #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature-detect-resolv-h"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Changes in the interface of resolv.so have historically made it hard to use this crate. I propose a change that simplifies this significantly.
First, the binding to resolv.so has to be generated on the target system. Then we need an adaptor that provides a consistent interface to that binding. That is the only part that has to be pre-prepared for each breaking change in glibc versions (as is the case in glibc 2.34). Lastly, we should use the official interface provided by resolv.h, which is enabled by the aforementioned adaptor.
These changes have made it significantly easier for me to compile this crate against multiple machines. My hope is that it may be useful to others, as well. That is why I am submitting this pull requests. I welcome all constructive criticism and suggestions for improvement.
Brilliant.
Thanks!
I had some issues with the diff against master because I originally based my branch off of branch glibc234. So I made a new branch based off of master and turned that into pull request #8 .
Pull request closed