Skip to content

Commit 89239a2

Browse files
rymdbartaiki-e
andauthored
Add support for Haiku (#233)
Related: bytecodealliance/rustix#411 Co-authored-by: cos <cos> Co-authored-by: Taiki Endo <[email protected]>
1 parent 3105382 commit 89239a2

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,9 @@ jobs:
128128
# - name: HermitOS
129129
# if: startsWith(matrix.rust, 'nightly') && startsWith(matrix.os, 'ubuntu')
130130
# run: cargo check -Z build-std --target x86_64-unknown-hermit
131-
# TODO:
132-
# - name: Check haiku
133-
# if: startsWith(matrix.rust, 'nightly') && startsWith(matrix.os, 'ubuntu')
134-
# run: cargo check -Z build-std --target x86_64-unknown-haiku
131+
- name: Check haiku
132+
if: startsWith(matrix.rust, 'nightly') && startsWith(matrix.os, 'ubuntu')
133+
run: cargo check -Z build-std --target x86_64-unknown-haiku
135134
- name: Check vita
136135
if: startsWith(matrix.rust, 'nightly') && startsWith(matrix.os, 'ubuntu')
137136
run: cargo check -Z build-std --target armv7-sony-vita-newlibeabihf

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2104,13 +2104,15 @@ fn connect(
21042104
target_os = "aix",
21052105
target_vendor = "apple",
21062106
target_os = "espidf",
2107+
target_os = "haiku",
21072108
windows,
21082109
)))]
21092110
let flags = rn::SocketFlags::CLOEXEC;
21102111
#[cfg(any(
21112112
target_os = "aix",
21122113
target_vendor = "apple",
21132114
target_os = "espidf",
2115+
target_os = "haiku",
21142116
windows,
21152117
))]
21162118
let flags = rn::SocketFlags::empty();

0 commit comments

Comments
 (0)