mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Remove usage of unstable libc crate.
This commit is contained in:
parent
28698dc8ba
commit
381f6967c9
2 changed files with 4 additions and 5 deletions
|
@ -10,9 +10,5 @@
|
|||
#![crate_name = "task_info"]
|
||||
#![crate_type = "rlib"]
|
||||
|
||||
#![feature(libc)]
|
||||
|
||||
extern crate libc;
|
||||
|
||||
pub mod task_basic_info;
|
||||
|
||||
|
|
|
@ -10,7 +10,10 @@
|
|||
//! Interface to the measurements in the task_basic_info struct, gathered by
|
||||
//! invoking `task_info()` with the `TASK_BASIC_INFO` flavor.
|
||||
|
||||
use libc::{c_int, size_t};
|
||||
use std::os::raw::c_int;
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
type size_t = usize;
|
||||
|
||||
/// Obtains task_basic_info::virtual_size.
|
||||
pub fn virtual_size() -> Option<usize> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue