From f9ef3bec68981db2b476d5c6cd455ec00606bf94 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 22 Mar 2022 12:41:08 +0000 Subject: [PATCH] gthreadedresolver: Only declare private test APIs on Unix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit They’re only defined on Unix anyway. `GThreadedResolver` has an entirely different code path for handling DNS replies on Windows. Signed-off-by: Philip Withnall --- gio/gthreadedresolver.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gio/gthreadedresolver.h b/gio/gthreadedresolver.h index c4d6dc28d..8d2ca19bf 100644 --- a/gio/gthreadedresolver.h +++ b/gio/gthreadedresolver.h @@ -43,6 +43,7 @@ GLIB_AVAILABLE_IN_ALL GType g_threaded_resolver_get_type (void) G_GNUC_CONST; /* Used for a private test API */ +#ifdef G_OS_UNIX GLIB_AVAILABLE_IN_ALL GList *g_resolver_records_from_res_query (const gchar *rrname, gint rrtype, @@ -52,6 +53,7 @@ GList *g_resolver_records_from_res_query (const gchar *rrname, GError **error); GLIB_AVAILABLE_IN_ALL gint g_resolver_record_type_to_rrtype (GResolverRecordType type); +#endif G_END_DECLS