Skip to content

Fixed compilation on gcc 11 and fixed new import paths for dlopen/dlsym/dlcose (#220) #221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion NativeCore/Unix/EnumerateRemoteSectionsAndModules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ extern "C" void RC_CallConv EnumerateRemoteSectionsAndModules(RC_Pointer handle,
RC_UnicodeChar Path[PATH_MAXIMUM_LENGTH] = {};
};

std::ifstream input(static_cast<std::stringstream&>(std::stringstream() << "/proc/" << reinterpret_cast<intptr_t>(handle) << "/maps").str());
std::ifstream input((std::stringstream() << "/proc/" << reinterpret_cast<intptr_t>(handle) << "/maps").str());

std::unordered_map<int, ModuleInfo> modules;

Expand Down
6 changes: 3 additions & 3 deletions ReClass.NET/Native/NativeMethods.Unix.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ internal class NativeMethodsUnix : INativeMethods

private const int RTLD_NOW = 2;

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

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

[DllImport("libdl.so")]
[DllImport("__Internal")]
private static extern int dlclose(IntPtr handle);

#endregion
Expand Down