Skip to content

Commit b1ff60f

Browse files
authored
Add VxWorks support (#105)
* Add vxworks platform support * Mention VxWorks support in CHANGELOG.md
1 parent 57d0c0d commit b1ff60f

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# [Unreleased]
22

3+
- Add VxWorks support
4+
[#105](https://github.com/lambda-fairy/rust-errno/pull/105)
5+
36
# [0.3.10] - 2024-11-29
47

58
- Update to windows-sys 0.59

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ fn check_description() {
124124
"Argument list too long"
125125
} else if cfg!(target_os = "haiku") {
126126
"Operation not allowed"
127+
} else if cfg!(target_os = "vxworks") {
128+
"operation not permitted"
127129
} else {
128130
"Operation not permitted"
129131
};

src/unix.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ extern "C" {
7777
target_os = "netbsd",
7878
target_os = "android",
7979
target_os = "espidf",
80+
target_os = "vxworks",
8081
target_env = "newlib"
8182
),
8283
link_name = "__errno"

0 commit comments

Comments
 (0)