Skip to content

Commit 236e7d4

Browse files
committed
FreeBSD: deprecate TIOCMGDTRWAIT and TIOCMSDTRWAIT
These constants were removed on `main` in ec605ff ("libc: fix ctest failure on freebsd15"). Mark them as deprecated with 0.2 rather than removing directly. Effectively a backport of #4685.
1 parent f931fda commit 236e7d4

File tree

1 file changed

+8
-0
lines changed
  • src/unix/bsd/freebsdlike

1 file changed

+8
-0
lines changed

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,7 +1238,15 @@ pub const TIOCGETD: c_ulong = 0x4004741a;
12381238
pub const TIOCSETD: c_ulong = 0x8004741b;
12391239
pub const TIOCGDRAINWAIT: c_ulong = 0x40047456;
12401240
pub const TIOCSDRAINWAIT: c_ulong = 0x80047457;
1241+
#[cfg_attr(
1242+
not(target_os = "dragonfly"),
1243+
deprecated = "unused since FreeBSD 8, removed in FreeBSD 15"
1244+
)]
12411245
pub const TIOCMGDTRWAIT: c_ulong = 0x4004745a;
1246+
#[cfg_attr(
1247+
not(target_os = "dragonfly"),
1248+
deprecated = "unused since FreeBSD 8, removed in FreeBSD 15"
1249+
)]
12421250
pub const TIOCMSDTRWAIT: c_ulong = 0x8004745b;
12431251
pub const TIOCDRAIN: c_ulong = 0x2000745e;
12441252
pub const TIOCEXT: c_ulong = 0x80047460;

0 commit comments

Comments
 (0)