[gnome-subtitles] Fix crash due to missing libdl
- From: Pedro Castro <pcastro src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-subtitles] Fix crash due to missing libdl
- Date: Sat, 23 Oct 2021 20:29:45 +0000 (UTC)
commit f7ebf2d19d1ffb2b5ec71dcb092bace7c33a4ca1
Author: Pedro Castro <pedro gnomesubtitles org>
Date:   Sat Oct 23 21:29:12 2021 +0100
    Fix crash due to missing libdl
    
    Fixes #185 - Version 1.7 does not start on Fedora 35 beta
 src/External/Interop/Interop.cs                         | 8 ++++----
 src/GnomeSubtitles/Execution/gnome-subtitles.exe.config | 1 -
 2 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/External/Interop/Interop.cs b/src/External/Interop/Interop.cs
index 6525800..6d26158 100644
--- a/src/External/Interop/Interop.cs
+++ b/src/External/Interop/Interop.cs
@@ -1,6 +1,6 @@
 /*
  * This file is part of Gnome Subtitles.
- * Copyright (C) 2020 Pedro Castro
+ * Copyright (C) 2020-2021 Pedro Castro
  *
  * Gnome Subtitles is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -28,13 +28,13 @@ public class Interop {
 
        /* Function imports */
        
-       [DllImport("libdl")]
+       [DllImport("libc")]
        private static extern IntPtr dlopen (string filename, int flags);
        
-       [DllImport("libdl")]
+       [DllImport("libc")]
        private static extern IntPtr dlsym (IntPtr handle, string symbol);
        
-       [DllImport("libdl")]
+       [DllImport("libc")]
        private static extern int dlclose (IntPtr handl);
        
        
diff --git a/src/GnomeSubtitles/Execution/gnome-subtitles.exe.config 
b/src/GnomeSubtitles/Execution/gnome-subtitles.exe.config
index 4ec86f7..1241e27 100644
--- a/src/GnomeSubtitles/Execution/gnome-subtitles.exe.config
+++ b/src/GnomeSubtitles/Execution/gnome-subtitles.exe.config
@@ -1,5 +1,4 @@
 <configuration>
        <dllmap dll="libgtk" target="libgtk-3.so.0" />
        <dllmap dll="libgtkspell" target="libgtkspell3-3.so.0" />
-       <dllmap dll="libdl" target="libdl.so" />
 </configuration>
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]