Skip to content

Commit dc945d9

Browse files
authored
Rollup merge of #145511 - semarie:push-rnytptsoxrxn, r=joshtriplett
Rust build fails on OpenBSD after using file_lock feature PR 130999 added the file_lock feature, but doesn't included OpenBSD in the supported targets (Tier 3 platform), leading to a compilation error ("try_lock() not supported"). Cc `@cberner` Related to #130999
2 parents e3576b2 + 8792010 commit dc945d9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

library/std/src/sys/fs/unix.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,6 +1264,7 @@ impl File {
12641264
target_os = "fuchsia",
12651265
target_os = "linux",
12661266
target_os = "netbsd",
1267+
target_os = "openbsd",
12671268
target_vendor = "apple",
12681269
))]
12691270
pub fn lock(&self) -> io::Result<()> {
@@ -1276,6 +1277,7 @@ impl File {
12761277
target_os = "fuchsia",
12771278
target_os = "linux",
12781279
target_os = "netbsd",
1280+
target_os = "openbsd",
12791281
target_vendor = "apple",
12801282
)))]
12811283
pub fn lock(&self) -> io::Result<()> {
@@ -1287,6 +1289,7 @@ impl File {
12871289
target_os = "fuchsia",
12881290
target_os = "linux",
12891291
target_os = "netbsd",
1292+
target_os = "openbsd",
12901293
target_vendor = "apple",
12911294
))]
12921295
pub fn lock_shared(&self) -> io::Result<()> {
@@ -1299,6 +1302,7 @@ impl File {
12991302
target_os = "fuchsia",
13001303
target_os = "linux",
13011304
target_os = "netbsd",
1305+
target_os = "openbsd",
13021306
target_vendor = "apple",
13031307
)))]
13041308
pub fn lock_shared(&self) -> io::Result<()> {
@@ -1310,6 +1314,7 @@ impl File {
13101314
target_os = "fuchsia",
13111315
target_os = "linux",
13121316
target_os = "netbsd",
1317+
target_os = "openbsd",
13131318
target_vendor = "apple",
13141319
))]
13151320
pub fn try_lock(&self) -> Result<(), TryLockError> {
@@ -1330,6 +1335,7 @@ impl File {
13301335
target_os = "fuchsia",
13311336
target_os = "linux",
13321337
target_os = "netbsd",
1338+
target_os = "openbsd",
13331339
target_vendor = "apple",
13341340
)))]
13351341
pub fn try_lock(&self) -> Result<(), TryLockError> {
@@ -1344,6 +1350,7 @@ impl File {
13441350
target_os = "fuchsia",
13451351
target_os = "linux",
13461352
target_os = "netbsd",
1353+
target_os = "openbsd",
13471354
target_vendor = "apple",
13481355
))]
13491356
pub fn try_lock_shared(&self) -> Result<(), TryLockError> {
@@ -1364,6 +1371,7 @@ impl File {
13641371
target_os = "fuchsia",
13651372
target_os = "linux",
13661373
target_os = "netbsd",
1374+
target_os = "openbsd",
13671375
target_vendor = "apple",
13681376
)))]
13691377
pub fn try_lock_shared(&self) -> Result<(), TryLockError> {
@@ -1378,6 +1386,7 @@ impl File {
13781386
target_os = "fuchsia",
13791387
target_os = "linux",
13801388
target_os = "netbsd",
1389+
target_os = "openbsd",
13811390
target_vendor = "apple",
13821391
))]
13831392
pub fn unlock(&self) -> io::Result<()> {
@@ -1390,6 +1399,7 @@ impl File {
13901399
target_os = "fuchsia",
13911400
target_os = "linux",
13921401
target_os = "netbsd",
1402+
target_os = "openbsd",
13931403
target_vendor = "apple",
13941404
)))]
13951405
pub fn unlock(&self) -> io::Result<()> {

0 commit comments

Comments
 (0)