Skip to content

Commit 7d65de6

Browse files
committed
not define TIMER_ABSTIME on Apple
1 parent 92d5026 commit 7d65de6

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,8 @@ pub const SF_IMMUTABLE: ::c_ulong = 0x00020000;
10171017
pub const SF_APPEND: ::c_ulong = 0x00040000;
10181018
pub const SF_NOUNLINK: ::c_ulong = 0x00100000;
10191019

1020+
pub const TIMER_ABSTIME: ::c_int = 1;
1021+
10201022
f! {
10211023
pub fn WIFCONTINUED(status: ::c_int) -> bool {
10221024
status == 0x13

src/unix/bsd/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,6 @@ pub const POLLWRNORM: ::c_short = 0x004;
332332
pub const POLLRDBAND: ::c_short = 0x080;
333333
pub const POLLWRBAND: ::c_short = 0x100;
334334

335-
pub const TIMER_ABSTIME: ::c_int = 1;
336-
337335
f! {
338336
pub fn CMSG_FIRSTHDR(mhdr: *const msghdr) -> *mut cmsghdr {
339337
if (*mhdr).msg_controllen as usize >= mem::size_of::<cmsghdr>() {

src/unix/bsd/netbsdlike/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,8 @@ pub const SF_ARCHIVED: ::c_ulong = 0x00010000;
589589
pub const SF_IMMUTABLE: ::c_ulong = 0x00020000;
590590
pub const SF_APPEND: ::c_ulong = 0x00040000;
591591

592+
pub const TIMER_ABSTIME: ::c_int = 1;
593+
592594
f! {
593595
pub fn WSTOPSIG(status: ::c_int) -> ::c_int {
594596
status >> 8

0 commit comments

Comments
 (0)