System.Data.SQLite
Check-in [a3c8ee12fc]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Attempt to fix an issue with the native library pre-loader when running on .NET Core under POSIX.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | netStandard20
Files: files | file ages | folders
SHA1: a3c8ee12fc942741c1df69670c9da7a3acde502a
User & Date: mistachkin 2018-04-06 16:32:25
Context
2018-04-06
17:10
More portability work on the native library preloader. check-in: 61d5e43af1 user: mistachkin tags: netStandard20
16:32
Attempt to fix an issue with the native library pre-loader when running on .NET Core under POSIX. check-in: a3c8ee12fc user: mistachkin tags: netStandard20
14:34
More tweaks to the Eagle script library in externals. check-in: 3fc667f990 user: mistachkin tags: netStandard20
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to System.Data.SQLite/UnsafeNativeMethods.cs.

   949    949         /// <param name="mode">
   950    950         /// This must be a combination of the individual bit flags RTLD_LAZY,
   951    951         /// RTLD_NOW, RTLD_GLOBAL, and/or RTLD_LOCAL.
   952    952         /// </param>
   953    953         /// <returns>
   954    954         /// The native module handle upon success -OR- IntPtr.Zero on failure.
   955    955         /// </returns>
   956         -      [DllImport("__Internal", EntryPoint = "dlopen",
          956  +#if NET_STANDARD_20
          957  +      [DllImport("libdl",
          958  +#else
          959  +      [DllImport("__Internal",
          960  +#endif
          961  +          EntryPoint = "dlopen",
   957    962             CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi,
   958    963             BestFitMapping = false, ThrowOnUnmappableChar = true,
   959    964             SetLastError = true)]
   960    965         internal static extern IntPtr dlopen(string fileName, int mode);
   961    966   
   962    967         /////////////////////////////////////////////////////////////////////////
   963    968         /// <summary>