Skip to content

Commit 229bd66

Browse files
committed
Auto merge of rust-lang#603 - Uplifting:master, r=alexcrichton
Add gmtime() Also slightly modified argument name for localtime.
2 parents c0cf280 + 7efffc1 commit 229bd66

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/unix/mod.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -715,8 +715,10 @@ extern {
715715
pub fn mktime(tm: *mut tm) -> time_t;
716716
#[cfg_attr(target_os = "netbsd", link_name = "__time50")]
717717
pub fn time(time: *mut time_t) -> time_t;
718+
#[cfg_attr(target_os = "netbsd", link_name = "__gmtime50")]
719+
pub fn gmtime(time_p: *const time_t) -> *mut tm;
718720
#[cfg_attr(target_os = "netbsd", link_name = "__locatime50")]
719-
pub fn localtime(time: *const time_t) -> *mut tm;
721+
pub fn localtime(time_p: *const time_t) -> *mut tm;
720722

721723
#[cfg_attr(target_os = "netbsd", link_name = "__mknod50")]
722724
pub fn mknod(pathname: *const ::c_char, mode: ::mode_t,

0 commit comments

Comments
 (0)