mirror of
https://github.com/quamotion/dotnet-packaging.git
synced 2026-02-14 21:32:52 +00:00
19 lines
447 B
C#
19 lines
447 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Packaging.Targets.Native
|
|
{
|
|
internal static class LinuxNativeMethods
|
|
{
|
|
public const int RTLD_NOW = 0x002;
|
|
|
|
private const string Libdl = "libdl.so.2";
|
|
|
|
[DllImport(Libdl)]
|
|
public static extern IntPtr dlsym(IntPtr handle, string symbol);
|
|
|
|
[DllImport(Libdl)]
|
|
public static extern IntPtr dlopen(string fileName, int flag);
|
|
}
|
|
}
|