Skip to content

Commit 961e015

Browse files
authored
Merge pull request #221 from ko1N/master
Fixed compilation on gcc 11 and fixed new import paths for dlopen/dlsym/dlcose (#220)
2 parents b407db3 + f4dc761 commit 961e015

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

NativeCore/Unix/EnumerateRemoteSectionsAndModules.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ extern "C" void RC_CallConv EnumerateRemoteSectionsAndModules(RC_Pointer handle,
5050
RC_UnicodeChar Path[PATH_MAXIMUM_LENGTH] = {};
5151
};
5252

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());
5454

5555
std::unordered_map<int, ModuleInfo> modules;
5656

ReClass.NET/Native/NativeMethods.Unix.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ internal class NativeMethodsUnix : INativeMethods
1010

1111
private const int RTLD_NOW = 2;
1212

13-
[DllImport("libdl.so")]
13+
[DllImport("__Internal")]
1414
private static extern IntPtr dlopen(string fileName, int flags);
1515

16-
[DllImport("libdl.so")]
16+
[DllImport("__Internal")]
1717
private static extern IntPtr dlsym(IntPtr handle, string symbol);
1818

19-
[DllImport("libdl.so")]
19+
[DllImport("__Internal")]
2020
private static extern int dlclose(IntPtr handle);
2121

2222
#endregion

0 commit comments

Comments
 (0)