From f50ef45220abea602157199d573c8bc12b0ba797 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 29 Nov 2023 11:57:20 +0000 Subject: [PATCH] gnetworking: Hide POSIX networking symbols from g-ir-scanner MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit They’re not part of the GLib API and don’t need to be exposed to the scanner. Signed-off-by: Philip Withnall Helps: #3037 --- gio/gnetworking.h.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gio/gnetworking.h.in b/gio/gnetworking.h.in index 3561239f8..3dddd9024 100644 --- a/gio/gnetworking.h.in +++ b/gio/gnetworking.h.in @@ -49,6 +49,8 @@ #include @NAMESER_COMPAT_INCLUDE@ +#ifndef __GI_SCANNER__ + #ifndef T_SRV #define T_SRV 33 #endif @@ -71,6 +73,8 @@ #endif #endif +#endif /* !__GI_SCANNER__ */ + G_BEGIN_DECLS GIO_AVAILABLE_IN_2_36