GNOME Bugzilla – Bug 724434
Build failure in gio/gresolver.c
Last modified: 2014-02-15 23:36:24 UTC
After https://git.gnome.org/browse/glib/commit/gio/gresolver.c?id=5575a3e9cb8ec3d0f0f373cb64e6fedc4c72c0f5 this won't build on FreeBSD due to EAI_NODATA being #if 0 in our netdb.h header with the comment that it is obsoleted.
Created attachment 269222 [details] [review]
Fix build by replacing EAI_NODATA with EAI_NONAME
# define EAI_NONAME -2 /* NAME or SERVICE is unknown. */
# ifdef __USE_GNU
# define EAI_NODATA -5 /* No address associated with NAME. */
They're not the same, but since we're just querying the string associated with one of these, I guess this is fine.
I'll leave it to danw to ACK the fix since he wrote this, though.
For completeness sake this are the lines on FreeBSD.
/* obsoleted */
#define EAI_NODATA 7 /* no address associated with hostname */
#define EAI_NONAME 8 /* hostname nor servname provided, or not known */