diff options
| author | Raph Levien <raph@google.com> | 2017-06-05 11:27:31 -0700 |
|---|---|---|
| committer | Raph Levien <raph@google.com> | 2017-06-05 11:27:31 -0700 |
| commit | 4e2a43f323a87e751b1cc1eaffe4e72eb200146f (patch) | |
| tree | 09faf0e304f7c6c2284dac7f3df0390e6144ed6b | |
| parent | 13eb0ec9f17c89a3cb06a8f3ae627c076839fa52 (diff) | |
| download | rust-4e2a43f323a87e751b1cc1eaffe4e72eb200146f.tar.gz rust-4e2a43f323a87e751b1cc1eaffe4e72eb200146f.zip | |
[fuchsia] Track change of mx_job_default
The implementation of mx_job_default changed from a macro which accessed the __magenta_job_default global variable to a proper function call. This patch tracks that change.
| -rw-r--r-- | src/libstd/sys/unix/process/magenta.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libstd/sys/unix/process/magenta.rs b/src/libstd/sys/unix/process/magenta.rs index 5b5e29c0374..ab609126cdb 100644 --- a/src/libstd/sys/unix/process/magenta.rs +++ b/src/libstd/sys/unix/process/magenta.rs @@ -102,7 +102,7 @@ pub struct mx_info_process_t { } extern { - static __magenta_job_default: mx_handle_t; + pub fn mx_job_default() -> mx_handle_t; pub fn mx_task_kill(handle: mx_handle_t) -> mx_status_t; @@ -119,10 +119,6 @@ extern { avail: *mut mx_size_t) -> mx_status_t; } -pub fn mx_job_default() -> mx_handle_t { - unsafe { return __magenta_job_default; } -} - // From `enum special_handles` in system/ulib/launchpad/launchpad.c // HND_LOADER_SVC = 0 // HND_EXEC_VMO = 1 |
