Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
s1341 committed Feb 2, 2025
1 parent 46e8835 commit 72d19c5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions frida-gum/src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ extern "C" {

#[cfg(not(target_os = "linux"))]
extern "C" {
pub fn _g_get_home_dir() -> *const c_char;
pub fn _g_get_current_dir() -> *const c_char;
pub fn _g_get_tmp_dir() -> *const c_char;
pub fn g_get_home_dir() -> *const c_char;
pub fn g_get_current_dir() -> *const c_char;
pub fn g_get_tmp_dir() -> *const c_char;
}

#[derive(Clone, FromPrimitive, Debug)]
Expand Down Expand Up @@ -132,7 +132,7 @@ impl<'a> Process<'a> {
#[cfg(target_os = "linux")]
let dir = _frida_g_get_current_dir();
#[cfg(not(target_os = "linux"))]
let dir = _g_get_current_dir();
let dir = g_get_current_dir();

CStr::from_ptr(dir).to_string_lossy().to_string()
}
Expand All @@ -144,7 +144,7 @@ impl<'a> Process<'a> {
#[cfg(target_os = "linux")]
let dir = _frida_g_get_tmp_dir();
#[cfg(not(target_os = "linux"))]
let dir = _g_get_tmp_dir();
let dir = g_get_tmp_dir();

CStr::from_ptr(dir).to_string_lossy().to_string()
}
Expand All @@ -156,7 +156,7 @@ impl<'a> Process<'a> {
#[cfg(target_os = "linux")]
let dir = _frida_g_get_home_dir();
#[cfg(not(target_os = "linux"))]
let dir = _g_get_home_dir();
let dir = g_get_home_dir();

CStr::from_ptr(dir).to_string_lossy().to_string()
}
Expand Down

0 comments on commit 72d19c5

Please sign in to comment.