File tree 2 files changed +15
-10
lines changed
src/unix/bsd/freebsdlike/freebsd/freebsd12
2 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -1596,19 +1596,24 @@ fn test_freebsd(target: &str) {
1596
1596
"SIG_DFL" | "SIG_ERR" | "SIG_IGN" => true , // sighandler_t weirdness
1597
1597
1598
1598
// 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
+ }
1607
1610
1611
+ // FIXME: There are deprecated - remove in a couple of releases.
1608
1612
// These constants were removed in FreeBSD 11 (svn r273250) but will
1609
1613
// still be accepted and ignored at runtime.
1610
- "MAP_RENAME" | "MAP_NORESERVE" => true ,
1614
+ "MAP_RENAME" | "MAP_NORESERVE" if Some ( 10 ) != freebsd_ver => true ,
1611
1615
1616
+ // FIXME: There are deprecated - remove in a couple of releases.
1612
1617
// These constants were removed in FreeBSD 11 (svn r262489),
1613
1618
// and they've never had any legitimate use outside of the
1614
1619
// base system anyway.
Original file line number Diff line number Diff line change 25
25
pub shm_dtime: :: time_t,
26
26
pub shm_ctime: :: time_t,
27
27
}
28
-
28
+
29
29
pub struct kevent {
30
30
pub ident: :: uintptr_t,
31
31
pub filter: :: c_short,
You can’t perform that action at this time.
0 commit comments