Add compatibility for glibc version 2.28 #10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "glibc228"
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?
This PR adds compatibility for
glibc < 2.31, specifically forglibc 2.28. Building this crate on RHEL8 throws the following exception:Removing the
RES_TRUSTADresolver solves this issue.I moved ResolverOptions into libresolv-sys so it is defined based on your glibc version, that way we could take RES_TRUSTAD out of the 2.28 version while leaving it in the other versions.
Great. Now cargo package won't package it. Your commit was fine, then it doesn't like mine, even though I can build it I can't package it.
If you have any ideas I'd appreciate them.