Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
error compiling on c-ares AIX #224
When trying to compile on AIX, I see the following error:
To compile, I did the following:
Any suggestions on how to solve the problem? I would be willing to send a PR for this, if suggestion is given. Problem seems to be that on AIX both these HEADER is defined in both .h files. Please let me know.
What version of AIX are you running? What version of c-ares are you testing (e.g. official 1.14.0 release, git master, etc)?
In my AIX version, at the top of nameser.h is a #define BIND_4_COMPAT which causes nameser_compat.h to be included if _USE_IRS is also defined. That said, I don't see anything setting _USE_IRS so onameser_compat.h would be included.
So if things have changed on more recent versions of AIX we'd need to know how. Its possible it simply isn't appropriate to include arpa/nameser_compat.h manually any longer on AIX. Either that or previously we really should have just done