diff options
Diffstat (limited to 'devel/electron33/files/patch-ui_gtk_gtk__compat.cc')
-rw-r--r-- | devel/electron33/files/patch-ui_gtk_gtk__compat.cc | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/devel/electron33/files/patch-ui_gtk_gtk__compat.cc b/devel/electron33/files/patch-ui_gtk_gtk__compat.cc deleted file mode 100644 index 3d8f1d2f6137..000000000000 --- a/devel/electron33/files/patch-ui_gtk_gtk__compat.cc +++ /dev/null @@ -1,53 +0,0 @@ ---- ui/gtk/gtk_compat.cc.orig 2024-05-18 09:02:32 UTC -+++ ui/gtk/gtk_compat.cc -@@ -62,22 +62,38 @@ void* GetLibGio() { - } - - void* GetLibGio() { -+#if BUILDFLAG(IS_BSD) -+ static void* libgio = DlOpen("libgio-2.0.so"); -+#else - static void* libgio = DlOpen("libgio-2.0.so.0"); -+#endif - return libgio; - } - - void* GetLibGdk3() { -+#if BUILDFLAG(IS_BSD) -+ static void* libgdk3 = DlOpen("libgdk-3.so"); -+#else - static void* libgdk3 = DlOpen("libgdk-3.so.0"); -+#endif - return libgdk3; - } - - void* GetLibGtk3(bool check = true) { -+#if BUILDFLAG(IS_BSD) -+ static void* libgtk3 = DlOpen("libgtk-3.so", check); -+#else - static void* libgtk3 = DlOpen("libgtk-3.so.0", check); -+#endif - return libgtk3; - } - - void* GetLibGtk4(bool check = true) { -+#if BUILDFLAG(IS_BSD) -+ static void* libgtk4 = DlOpen("libgtk-4.so", check); -+#else - static void* libgtk4 = DlOpen("libgtk-4.so.1", check); -+#endif - return libgtk4; - } - -@@ -130,7 +146,11 @@ void* GetLibGdkPixbuf() { - } // namespace - - void* GetLibGdkPixbuf() { -+#if BUILDFLAG(IS_BSD) -+ static void* libgdk_pixbuf = DlOpen("libgdk_pixbuf-2.0.so"); -+#else - static void* libgdk_pixbuf = DlOpen("libgdk_pixbuf-2.0.so.0"); -+#endif - return libgdk_pixbuf; - } - |