Skip to content

Commit 9bc1a54

Browse files
committed
formatting
1 parent 150a2a8 commit 9bc1a54

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

libc-test/build.rs

+14-9
Original file line numberDiff line numberDiff line change
@@ -1596,19 +1596,24 @@ fn test_freebsd(target: &str) {
15961596
"SIG_DFL" | "SIG_ERR" | "SIG_IGN" => true, // sighandler_t weirdness
15971597

15981598
// These constants were introduced in FreeBSD 12:
1599-
"SF_USER_READAHEAD" |
1600-
"EVFILT_EMPTY" |
1601-
"SO_REUSEPORT_LB" |
1602-
"IP_ORIGDSTADDR" |
1603-
"IP_RECVORIGDSTADDR" |
1604-
"IPV6_ORIGDSTADDR" |
1605-
"IPV6_RECVORIGDSTADDR"
1606-
if Some(12) != freebsd_ver => true,
1599+
"SF_USER_READAHEAD"
1600+
| "EVFILT_EMPTY"
1601+
| "SO_REUSEPORT_LB"
1602+
| "IP_ORIGDSTADDR"
1603+
| "IP_RECVORIGDSTADDR"
1604+
| "IPV6_ORIGDSTADDR"
1605+
| "IPV6_RECVORIGDSTADDR"
1606+
if Some(12) != freebsd_ver =>
1607+
{
1608+
true
1609+
}
16071610

1611+
// FIXME: There are deprecated - remove in a couple of releases.
16081612
// These constants were removed in FreeBSD 11 (svn r273250) but will
16091613
// still be accepted and ignored at runtime.
1610-
"MAP_RENAME" | "MAP_NORESERVE" => true,
1614+
"MAP_RENAME" | "MAP_NORESERVE" if Some(10) != freebsd_ver => true,
16111615

1616+
// FIXME: There are deprecated - remove in a couple of releases.
16121617
// These constants were removed in FreeBSD 11 (svn r262489),
16131618
// and they've never had any legitimate use outside of the
16141619
// base system anyway.

src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ s! {
2525
pub shm_dtime: ::time_t,
2626
pub shm_ctime: ::time_t,
2727
}
28-
28+
2929
pub struct kevent {
3030
pub ident: ::uintptr_t,
3131
pub filter: ::c_short,

0 commit comments

Comments
 (0)