Skip to content

Commit 5a281ec

Browse files
committed
Add Type::{cloexec, nonblocking} on illumos
1 parent 819716c commit 5a281ec

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/socket.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ impl Socket {
188188
target_os = "android",
189189
target_os = "dragonfly",
190190
target_os = "freebsd",
191+
target_os = "illumos",
191192
target_os = "linux",
192193
target_os = "netbsd",
193194
target_os = "openbsd",
@@ -199,6 +200,7 @@ impl Socket {
199200
target_os = "android",
200201
target_os = "dragonfly",
201202
target_os = "freebsd",
203+
target_os = "illumos",
202204
target_os = "linux",
203205
target_os = "netbsd",
204206
target_os = "openbsd",
@@ -493,6 +495,7 @@ fn set_common_type(ty: Type) -> Type {
493495
target_os = "android",
494496
target_os = "dragonfly",
495497
target_os = "freebsd",
498+
target_os = "illumos",
496499
target_os = "linux",
497500
target_os = "netbsd",
498501
target_os = "openbsd",
@@ -516,6 +519,7 @@ fn set_common_flags(socket: Socket) -> io::Result<Socket> {
516519
target_os = "android",
517520
target_os = "dragonfly",
518521
target_os = "freebsd",
522+
target_os = "illumos",
519523
target_os = "linux",
520524
target_os = "netbsd",
521525
target_os = "openbsd",

src/sys/unix.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ impl Type {
187187
target_os = "android",
188188
target_os = "dragonfly",
189189
target_os = "freebsd",
190+
target_os = "illumos",
190191
target_os = "linux",
191192
target_os = "netbsd",
192193
target_os = "openbsd"
@@ -208,6 +209,7 @@ impl Type {
208209
target_os = "android",
209210
target_os = "dragonfly",
210211
target_os = "freebsd",
212+
target_os = "illumos",
211213
target_os = "linux",
212214
target_os = "netbsd",
213215
target_os = "openbsd"
@@ -221,6 +223,7 @@ impl Type {
221223
target_os = "android",
222224
target_os = "dragonfly",
223225
target_os = "freebsd",
226+
target_os = "illumos",
224227
target_os = "linux",
225228
target_os = "netbsd",
226229
target_os = "openbsd"

0 commit comments

Comments
 (0)