From b35b84064de1e00dd3ed8212daef4428abd461ce Mon Sep 17 00:00:00 2001 From: Reuben Staley Date: Wed, 27 May 2020 15:07:08 -0600 Subject: [PATCH] more conditional compiling, this time for errors --- vm/src/stdlib/errno.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vm/src/stdlib/errno.rs b/vm/src/stdlib/errno.rs index f6e40d19d..28934a1bd 100644 --- a/vm/src/stdlib/errno.rs +++ b/vm/src/stdlib/errno.rs @@ -88,7 +88,7 @@ const ERROR_CODES: &[(&str, i32)] = &[ e!(ENODEV), e!(EHOSTUNREACH), e!(cfg(not(windows)), ENOMSG), - // e!(cfg(not(windows)), ENODATA), + e!(cfg(not(any(target_os = "openbsd", windows))), ENODATA), e!(cfg(not(windows)), ENOTBLK), e!(ENOSYS), e!(EPIPE), @@ -115,7 +115,7 @@ const ERROR_CODES: &[(&str, i32)] = &[ e!(EISCONN), e!(ESHUTDOWN), e!(EBADF), - // e!(cfg(not(windows)), EMULTIHOP), + e!(cfg(not(any(target_os = "openbsd", windows))), EMULTIHOP), e!(EIO), e!(EPROTOTYPE), e!(ENOSPC), @@ -136,13 +136,13 @@ const ERROR_CODES: &[(&str, i32)] = &[ e!(cfg(not(windows)), EBADMSG), e!(ENFILE), e!(ESPIPE), - // e!(cfg(not(windows)), ENOLINK), + e!(cfg(not(any(target_os = "openbsd", windows))), ENOLINK), e!(ENETRESET), e!(ETIMEDOUT), e!(ENOENT), e!(EEXIST), e!(EDQUOT), - // e!(cfg(not(windows)), ENOSTR), + e!(cfg(not(any(target_os = "openbsd", windows))), ENOSTR), e!(EFAULT), e!(EFBIG), e!(ENOTCONN), @@ -151,7 +151,7 @@ const ERROR_CODES: &[(&str, i32)] = &[ e!(ECONNABORTED), e!(ENETUNREACH), e!(ESTALE), - // e!(cfg(not(windows)), ENOSR), + e!(cfg(not(any(target_os = "openbsd", windows))), ENOSR), e!(ENOMEM), e!(ENOTSOCK), e!(EMLINK), @@ -162,7 +162,7 @@ const ERROR_CODES: &[(&str, i32)] = &[ e!(ENAMETOOLONG), e!(ENOTTY), e!(ESOCKTNOSUPPORT), - // e!(cfg(not(windows)), ETIME), + e!(cfg(not(any(target_os = "openbsd", windows))), ETIME), e!(ETOOMANYREFS), e!(EMFILE), e!(cfg(not(windows)), ETXTBSY),