Skip to content

Commit b35b840

Browse files
committed
more conditional compiling, this time for errors
1 parent f2eb588 commit b35b840

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

vm/src/stdlib/errno.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const ERROR_CODES: &[(&str, i32)] = &[
8888
e!(ENODEV),
8989
e!(EHOSTUNREACH),
9090
e!(cfg(not(windows)), ENOMSG),
91-
// e!(cfg(not(windows)), ENODATA),
91+
e!(cfg(not(any(target_os = "openbsd", windows))), ENODATA),
9292
e!(cfg(not(windows)), ENOTBLK),
9393
e!(ENOSYS),
9494
e!(EPIPE),
@@ -115,7 +115,7 @@ const ERROR_CODES: &[(&str, i32)] = &[
115115
e!(EISCONN),
116116
e!(ESHUTDOWN),
117117
e!(EBADF),
118-
// e!(cfg(not(windows)), EMULTIHOP),
118+
e!(cfg(not(any(target_os = "openbsd", windows))), EMULTIHOP),
119119
e!(EIO),
120120
e!(EPROTOTYPE),
121121
e!(ENOSPC),
@@ -136,13 +136,13 @@ const ERROR_CODES: &[(&str, i32)] = &[
136136
e!(cfg(not(windows)), EBADMSG),
137137
e!(ENFILE),
138138
e!(ESPIPE),
139-
// e!(cfg(not(windows)), ENOLINK),
139+
e!(cfg(not(any(target_os = "openbsd", windows))), ENOLINK),
140140
e!(ENETRESET),
141141
e!(ETIMEDOUT),
142142
e!(ENOENT),
143143
e!(EEXIST),
144144
e!(EDQUOT),
145-
// e!(cfg(not(windows)), ENOSTR),
145+
e!(cfg(not(any(target_os = "openbsd", windows))), ENOSTR),
146146
e!(EFAULT),
147147
e!(EFBIG),
148148
e!(ENOTCONN),
@@ -151,7 +151,7 @@ const ERROR_CODES: &[(&str, i32)] = &[
151151
e!(ECONNABORTED),
152152
e!(ENETUNREACH),
153153
e!(ESTALE),
154-
// e!(cfg(not(windows)), ENOSR),
154+
e!(cfg(not(any(target_os = "openbsd", windows))), ENOSR),
155155
e!(ENOMEM),
156156
e!(ENOTSOCK),
157157
e!(EMLINK),
@@ -162,7 +162,7 @@ const ERROR_CODES: &[(&str, i32)] = &[
162162
e!(ENAMETOOLONG),
163163
e!(ENOTTY),
164164
e!(ESOCKTNOSUPPORT),
165-
// e!(cfg(not(windows)), ETIME),
165+
e!(cfg(not(any(target_os = "openbsd", windows))), ETIME),
166166
e!(ETOOMANYREFS),
167167
e!(EMFILE),
168168
e!(cfg(not(windows)), ETXTBSY),

0 commit comments

Comments
 (0)