From 68c5712471386a89c18c64b76ab8751dee0e7938 Mon Sep 17 00:00:00 2001 From: cos Date: Sun, 6 Jul 2025 09:50:32 +0200 Subject: [PATCH 1/2] Add support for Haiku Related: https://github.com/bytecodealliance/rustix/pull/411 --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index fd75258..140ce30 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2104,6 +2104,7 @@ fn connect( target_os = "aix", target_vendor = "apple", target_os = "espidf", + target_os = "haiku", windows, )))] let flags = rn::SocketFlags::CLOEXEC; @@ -2111,6 +2112,7 @@ fn connect( target_os = "aix", target_vendor = "apple", target_os = "espidf", + target_os = "haiku", windows, ))] let flags = rn::SocketFlags::empty(); From 1cabc5b12cd07ddc3aed8ff09ae2721eb6ca07bd Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sat, 19 Jul 2025 22:56:33 +0900 Subject: [PATCH 2/2] ci: Enable check for haiku --- .github/workflows/ci.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3a4449a..7fd9caa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -128,10 +128,9 @@ jobs: # - name: HermitOS # if: startsWith(matrix.rust, 'nightly') && startsWith(matrix.os, 'ubuntu') # run: cargo check -Z build-std --target x86_64-unknown-hermit - # TODO: - # - name: Check haiku - # if: startsWith(matrix.rust, 'nightly') && startsWith(matrix.os, 'ubuntu') - # run: cargo check -Z build-std --target x86_64-unknown-haiku + - name: Check haiku + if: startsWith(matrix.rust, 'nightly') && startsWith(matrix.os, 'ubuntu') + run: cargo check -Z build-std --target x86_64-unknown-haiku - name: Check vita if: startsWith(matrix.rust, 'nightly') && startsWith(matrix.os, 'ubuntu') run: cargo check -Z build-std --target armv7-sony-vita-newlibeabihf