Skip to content

Commit 040f826

Browse files
committed
Add Type::cloexec for Solaris
1 parent f111f9d commit 040f826

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/sys/unix.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,8 @@ impl Type {
408408
target_os = "illumos",
409409
target_os = "linux",
410410
target_os = "netbsd",
411-
target_os = "openbsd"
411+
target_os = "openbsd",
412+
target_os = "solaris",
412413
)
413414
))]
414415
#[cfg_attr(
@@ -423,7 +424,8 @@ impl Type {
423424
target_os = "illumos",
424425
target_os = "linux",
425426
target_os = "netbsd",
426-
target_os = "openbsd"
427+
target_os = "openbsd",
428+
target_os = "solaris",
427429
)
428430
)))
429431
)]
@@ -439,7 +441,8 @@ impl Type {
439441
target_os = "illumos",
440442
target_os = "linux",
441443
target_os = "netbsd",
442-
target_os = "openbsd"
444+
target_os = "openbsd",
445+
target_os = "solaris",
443446
))]
444447
pub(crate) const fn _cloexec(self) -> Type {
445448
Type(self.0 | libc::SOCK_CLOEXEC)

0 commit comments

Comments
 (0)