Skip to content

Commit 96450de

Browse files
committed
Merge pull request rust-lang#40 from myfreeweb/master
Fix forgotten ::size_t for freebsd
2 parents d3bd281 + 9b7cf48 commit 96450de

File tree

1 file changed

+5
-5
lines changed
  • src/unix/bsd/freebsdlike

1 file changed

+5
-5
lines changed

src/unix/bsd/freebsdlike/mod.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -501,22 +501,22 @@ pub const PTHREAD_RWLOCK_INITIALIZER: pthread_rwlock_t = 0 as *mut _;
501501
pub const PTHREAD_MUTEX_RECURSIVE: ::c_int = 2;
502502

503503
extern {
504-
pub fn mprotect(addr: *const ::c_void, len: size_t, prot: ::c_int)
504+
pub fn mprotect(addr: *const ::c_void, len: ::size_t, prot: ::c_int)
505505
-> ::c_int;
506506
pub fn shm_open(name: *const ::c_char, oflag: ::c_int, mode: ::mode_t)
507507
-> ::c_int;
508508
pub fn sysctl(name: *const ::c_int,
509509
namelen: ::c_uint,
510510
oldp: *mut ::c_void,
511-
oldlenp: *mut size_t,
511+
oldlenp: *mut ::size_t,
512512
newp: *const ::c_void,
513-
newlen: size_t)
513+
newlen: ::size_t)
514514
-> ::c_int;
515515
pub fn sysctlbyname(name: *const ::c_char,
516516
oldp: *mut ::c_void,
517-
oldlenp: *mut size_t,
517+
oldlenp: *mut ::size_t,
518518
newp: *const ::c_void,
519-
newlen: size_t)
519+
newlen: ::size_t)
520520
-> ::c_int;
521521
pub fn clock_gettime(clk_id: ::c_int, tp: *mut ::timespec) -> ::c_int;
522522
pub fn pthread_set_name_np(tid: ::pthread_t, name: *const ::c_char);

0 commit comments

Comments
 (0)