GeezerVison is showing github.com — Fixed compilation on gcc 11 and fixed new import paths for dlopen/dls… · ReClassNET/ReClass.NET@f4dc761
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: NativeCore/Unix/EnumerateRemoteSectionsAndModules.cpp +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -50,7 +50,7 @@ extern "C" void RC_CallConv EnumerateRemoteSectionsAndModules(RC_Pointer handle, |
50 | 50 | RC_UnicodeChar Path[PATH_MAXIMUM_LENGTH] = {}; |
51 | 51 | }; |
52 | 52 |
|
53 | | - std::ifstream input(static_cast<std::stringstream&>(std::stringstream() << "/proc/" << reinterpret_cast<intptr_t>(handle) << "/maps").str()); |
| 53 | + std::ifstream input((std::stringstream() << "/proc/" << reinterpret_cast<intptr_t>(handle) << "/maps").str()); |
54 | 54 |
|
55 | 55 | std::unordered_map<int, ModuleInfo> modules; |
56 | 56 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: ReClass.NET/Native/NativeMethods.Unix.cs +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -10,13 +10,13 @@ internal class NativeMethodsUnix : INativeMethods |
10 | 10 |
|
11 | 11 | private const int RTLD_NOW = 2; |
12 | 12 |
|
13 | | - [DllImport("libdl.so")] |
| 13 | + [DllImport("__Internal")] |
14 | 14 | private static extern IntPtr dlopen(string fileName, int flags); |
15 | 15 |
|
16 | | - [DllImport("libdl.so")] |
| 16 | + [DllImport("__Internal")] |
17 | 17 | private static extern IntPtr dlsym(IntPtr handle, string symbol); |
18 | 18 |
|
19 | | - [DllImport("libdl.so")] |
| 19 | + [DllImport("__Internal")] |
20 | 20 | private static extern int dlclose(IntPtr handle); |
21 | 21 |
|
22 | 22 | #endregion |
|