GNOME Bugzilla – Bug 617053
nanohttp.c include resolv.h unconditionally
Last modified: 2012-05-11 02:11:30 UTC
Created attachment 159766 [details] [review] patch for nanohttp.c to include resolv.h conditionally In nanohttp.c of libxml2-2.7.7 (and head), resolv.h is included if SUPPORT_IP6 is defined. It break building on resolv.h less platforms, at least my Interix-6.0. attachment patch should resolve this issue.
Comment on attachment 159766 [details] [review] patch for nanohttp.c to include resolv.h conditionally [Setting "patch" flag and correcting mime type so this can actually be queried for.]
Ah, right, the patch is correct but I found out in the current git head that there is already #ifdef HAVE_RESOLV_H #ifdef HAVE_ARPA_NAMESER_H #include <arpa/nameser.h> #endif #include <resolv.h> #endif a few lines above, so the simplest is to remove the later inclusion because if available that header was already included ! thanks, Daniel