[gdk-pixbuf: 1/2] gdk-pixbuf/gdk-pixbuf-io.c: fix build without gmodule
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf: 1/2] gdk-pixbuf/gdk-pixbuf-io.c: fix build without gmodule
- Date: Tue, 9 Feb 2021 21:52:35 +0000 (UTC)
commit d6893bf9c44d1c8506d8e09f7aa9ca6d08865984
Author: Fabrice Fontaine <fontaine fabrice gmail com>
Date: Tue Feb 9 21:15:41 2021 +0100
gdk-pixbuf/gdk-pixbuf-io.c: fix build without gmodule
Fix the following build failure:
../gdk-pixbuf/gdk-pixbuf-io.c: In function 'gdk_pixbuf_io_init':
../gdk-pixbuf/gdk-pixbuf-io.c:681:16: error: implicit declaration of function
'gdk_pixbuf_get_module_file'; did you mean '_gdk_pixbuf_get_module'? [-Werror=implicit-function-declaration]
681 | module_file = gdk_pixbuf_get_module_file ();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| _gdk_pixbuf_get_module
Fixes:
- http://autobuild.buildroot.org/results/6cd54c497f5d19342ec94ece713547b887e4c02d
Signed-off-by: Fabrice Fontaine <fontaine fabrice gmail com>
gdk-pixbuf/gdk-pixbuf-io.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gdk-pixbuf/gdk-pixbuf-io.c b/gdk-pixbuf/gdk-pixbuf-io.c
index 40eb920c8..2dc2ea6da 100644
--- a/gdk-pixbuf/gdk-pixbuf-io.c
+++ b/gdk-pixbuf/gdk-pixbuf-io.c
@@ -678,7 +678,9 @@ gdk_pixbuf_io_init (void)
gboolean ret;
gdk_pixbuf_io_init_builtin ();
+#ifdef USE_GMODULE
module_file = gdk_pixbuf_get_module_file ();
+#endif
ret = gdk_pixbuf_io_init_modules (module_file, NULL);
g_free (module_file);
return ret;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]