not define TIMER_ABSTIME on Apple

This commit is contained in:
M Farkas-Dyck 2018-12-05 16:04:01 -08:00
parent 92d502628c
commit 7d65de6b61
3 changed files with 4 additions and 2 deletions

View File

@ -1017,6 +1017,8 @@ pub const SF_IMMUTABLE: ::c_ulong = 0x00020000;
pub const SF_APPEND: ::c_ulong = 0x00040000;
pub const SF_NOUNLINK: ::c_ulong = 0x00100000;
pub const TIMER_ABSTIME: ::c_int = 1;
f! {
pub fn WIFCONTINUED(status: ::c_int) -> bool {
status == 0x13

View File

@ -332,8 +332,6 @@ pub const POLLWRNORM: ::c_short = 0x004;
pub const POLLRDBAND: ::c_short = 0x080;
pub const POLLWRBAND: ::c_short = 0x100;
pub const TIMER_ABSTIME: ::c_int = 1;
f! {
pub fn CMSG_FIRSTHDR(mhdr: *const msghdr) -> *mut cmsghdr {
if (*mhdr).msg_controllen as usize >= mem::size_of::<cmsghdr>() {

View File

@ -589,6 +589,8 @@ pub const SF_ARCHIVED: ::c_ulong = 0x00010000;
pub const SF_IMMUTABLE: ::c_ulong = 0x00020000;
pub const SF_APPEND: ::c_ulong = 0x00040000;
pub const TIMER_ABSTIME: ::c_int = 1;
f! {
pub fn WSTOPSIG(status: ::c_int) -> ::c_int {
status >> 8