From 7c9caecfebf7d15899fe361324c414fbfc7b1317 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Sun, 26 Apr 2009 12:18:42 -0400 Subject: [PATCH] Fix the networking stuff on (current) OS X OS X's headers split up the current and old (BIND 4) nameserver stuff slightly differently than Linux does, but explicitly including arpa/nameser_compat.h does the right thing on both. Part of #580301 --- gio/ginetaddress.c | 3 +++ gio/gnetworkingprivate.h | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gio/ginetaddress.c b/gio/ginetaddress.c index 1af9916..bf6578b 100644 --- a/gio/ginetaddress.c +++ b/gio/ginetaddress.c @@ -22,6 +22,9 @@ */ #include + +#include + #include #include "ginetaddress.h" diff --git a/gio/gnetworkingprivate.h b/gio/gnetworkingprivate.h index c41f598..8af75aa 100644 --- a/gio/gnetworkingprivate.h +++ b/gio/gnetworkingprivate.h @@ -31,10 +31,12 @@ #else /* !G_OS_WIN32 */ -#define BIND_4_COMPAT - #include #include +#if HAVE_ARPA_NAMESER_COMPAT_H +#include +#endif + /* We're supposed to define _GNU_SOURCE to get EAI_NODATA, but that * won't actually work since has already been included at * this point. So we define __USE_GNU instead. -- 2.7.4