summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-11-04 09:18:56 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-11-04 09:18:56 -0800
commit96450de63086289907e5f1b2b44f4c9e80dd1887 (patch)
treef7373e58c42fd28b9a14d5cb49fa311d805b8dd6
parentd3bd28139ae7ebfa74156aa5fa102a056f0102a3 (diff)
parent9b7cf488e75c939f10d0ccc1c87a618336870e61 (diff)
downloadrust-libc-96450de63086289907e5f1b2b44f4c9e80dd1887.tar.gz
Merge pull request #40 from myfreeweb/master
Fix forgotten ::size_t for freebsd
-rw-r--r--src/unix/bsd/freebsdlike/mod.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/unix/bsd/freebsdlike/mod.rs b/src/unix/bsd/freebsdlike/mod.rs
index a6ceee76af..14d9f55a65 100644
--- a/src/unix/bsd/freebsdlike/mod.rs
+++ b/src/unix/bsd/freebsdlike/mod.rs
@@ -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);