]> Skullheadx's Git Forge - surf.git/commitdiff
webext: add missing gio/gunixfdlist.h includes
authorPetr Vaněk <arkamar@atlas.cz>
Fri, 21 Oct 2022 14:36:14 +0000 (16:36 +0200)
committerQuentin Rameau <quinq@fifth.space>
Sat, 22 Oct 2022 11:07:19 +0000 (13:07 +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
webext-surf.c

diff --git a/surf.c b/surf.c
index 001f7765c292a152751e4f1a78741957b592f178..9ae5c2d76da3183cd8245e11e484a8d032220186 100644 (file)
--- a/surf.c
+++ b/surf.c
@@ -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>
index 69fd04b91ccf368b52f84f4e764e4a8b06d8c46d..d2753b5d4202736aa2583fe00df48a7ea16a9bf9 100644 (file)
@@ -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>