Skip to content

Commit 4b4caec

Browse files
committed
Alphabetize some target_os configurations
1 parent 718bd9d commit 4b4caec

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

src/sys/aio.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ libc_enum! {
1919
/// do it like `fsync`
2020
O_SYNC,
2121
/// on supported operating systems only, do it like `fdatasync`
22-
#[cfg(any(target_os = "openbsd", target_os = "bitrig",
23-
target_os = "netbsd", target_os = "macos", target_os = "ios",
24-
target_os = "linux"))]
22+
#[cfg(any(
23+
target_os = "bitrig",
24+
target_os = "ios",
25+
target_os = "linux",
26+
target_os = "macos",
27+
target_os = "netbsd",
28+
target_os = "openbsd"))]
2529
O_DSYNC
2630
}
2731
}

src/sys/event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ libc_enum! {
5959
target_os = "ios",
6060
target_os = "macos"))]
6161
EVFILT_USER,
62-
#[cfg(any(target_os = "macos", target_os = "ios"))]
62+
#[cfg(any(target_os = "ios", target_os = "macos"))]
6363
EVFILT_VM,
6464
EVFILT_VNODE,
6565
EVFILT_WRITE,

src/sys/signal.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ libc_enum!{
3333
SIGPIPE,
3434
SIGALRM,
3535
SIGTERM,
36-
#[cfg(all(any(target_os = "linux", target_os = "android", target_os = "emscripten"), not(any(target_arch = "mips", target_arch = "mips64"))))]
36+
#[cfg(all(
37+
any(target_os = "android", target_os = "emscripten", target_os = "linux"),
38+
not(any(target_arch = "mips", target_arch = "mips64"))))]
3739
SIGSTKFLT,
3840
SIGCHLD,
3941
SIGCONT,
@@ -48,12 +50,12 @@ libc_enum!{
4850
SIGPROF,
4951
SIGWINCH,
5052
SIGIO,
51-
#[cfg(any(target_os = "linux", target_os = "android", target_os = "emscripten"))]
53+
#[cfg(any(target_os = "android", target_os = "emscripten", target_os = "linux"))]
5254
SIGPWR,
5355
SIGSYS,
54-
#[cfg(not(any(target_os = "linux", target_os = "android", target_os = "emscripten")))]
56+
#[cfg(not(any(target_os = "android", target_os = "emscripten", target_os = "linux")))]
5557
SIGEMT,
56-
#[cfg(not(any(target_os = "linux", target_os = "android", target_os = "emscripten")))]
58+
#[cfg(not(any(target_os = "android", target_os = "emscripten", target_os = "linux")))]
5759
SIGINFO,
5860
}
5961
}

0 commit comments

Comments
 (0)