[hackers] [surf][PATCH 1/2] webext: add missing gio/gunixfdlist.h includes

From: Petr Vaněk <arkamar_AT_atlas.cz>
Date: Fri, 21 Oct 2022 16:36:14 +0200

This resolves two set of warnings pointed by compiler
-Wimplicit-function-declaration and -Wint-conversion, where the later
one can result with segfault caused by invalid cast from int to pointer.

Fixes: 665a709b522a ("webext: Exchange fd over webkit messages")
---
 surf.c        | 1 +
 webext-surf.c | 1 +
 2 files changed, 2 insertions(+)
diff --git a/surf.c b/surf.c
index 001f776..9ae5c2d 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -21,6 +21,7 @@
 #include <gdk/gdk.h>
 #include <gdk/gdkkeysyms.h>
 #include <gdk/gdkx.h>
+#include <gio/gunixfdlist.h>
 #include <glib/gstdio.h>
 #include <gtk/gtk.h>
 #include <gtk/gtkx.h>
diff --git a/webext-surf.c b/webext-surf.c
index 69fd04b..d2753b5 100644
--- a/webext-surf.c
+++ b/webext-surf.c
_AT_@ -7,6 +7,7 @@
 #include <stdlib.h>
 
 #include <gio/gio.h>
+#include <gio/gunixfdlist.h>
 #include <webkit2/webkit-web-extension.h>
 #include <webkitdom/webkitdom.h>
 #include <webkitdom/WebKitDOMDOMWindowUnstable.h>
-- 
2.37.3
Received on Fri Oct 21 2022 - 16:36:14 CEST

This archive was generated by hypermail 2.3.0 : Fri Oct 21 2022 - 16:36:38 CEST