Skip to content

Commit

Permalink
Merge pull request rust-lang#40 from myfreeweb/master
Browse files Browse the repository at this point in the history
Fix forgotten ::size_t for freebsd
  • Loading branch information
alexcrichton committed Nov 4, 2015
2 parents d3bd281 + 9b7cf48 commit 96450de
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/unix/bsd/freebsdlike/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,22 +501,22 @@ pub const PTHREAD_RWLOCK_INITIALIZER: pthread_rwlock_t = 0 as *mut _;
pub const PTHREAD_MUTEX_RECURSIVE: ::c_int = 2;

extern {
pub fn mprotect(addr: *const ::c_void, len: size_t, prot: ::c_int)
pub fn mprotect(addr: *const ::c_void, len: ::size_t, prot: ::c_int)
-> ::c_int;
pub fn shm_open(name: *const ::c_char, oflag: ::c_int, mode: ::mode_t)
-> ::c_int;
pub fn sysctl(name: *const ::c_int,
namelen: ::c_uint,
oldp: *mut ::c_void,
oldlenp: *mut size_t,
oldlenp: *mut ::size_t,
newp: *const ::c_void,
newlen: size_t)
newlen: ::size_t)
-> ::c_int;
pub fn sysctlbyname(name: *const ::c_char,
oldp: *mut ::c_void,
oldlenp: *mut size_t,
oldlenp: *mut ::size_t,
newp: *const ::c_void,
newlen: size_t)
newlen: ::size_t)
-> ::c_int;
pub fn clock_gettime(clk_id: ::c_int, tp: *mut ::timespec) -> ::c_int;
pub fn pthread_set_name_np(tid: ::pthread_t, name: *const ::c_char);
Expand Down

0 comments on commit 96450de

Please sign in to comment.