bugaevc / pipe-channel

Channel implementation based on pipes
MIT License
2 stars 1 forks source link

support for illumos #3

Open jclulow opened 2 years ago

jclulow commented 2 years ago

I was trying to use something that transitively uses pipe-channel, and discovered that it doesn't build today on illumos. Fortunately a nix update was all that was required, which I have done here. I also fixed the tests on an illumos system:

$ cargo test --lib
   Compiling pipe-channel v1.3.1 (/ws/safari/pipe-channel)
    Finished test [unoptimized + debuginfo] target(s) in 1m 15s
     Running unittests (target/debug/deps/pipe_channel-e2a9b49cb621c3d3)

running 8 tests
test tests::zero_sized_type_drop ... ok
test tests::no_send_no_threading ... ok
test tests::raw_fd ... ok
test tests::no_drop_on_recv_err ... ok
test tests::debug_print ... ok
test tests::zero_sized_type ... ok
test tests::no_leak ... ok
test tests::large_data ... ok

test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

$ uname -a
SunOS sigma 5.11 joyent_20220127T011500Z i86pc i386 i86pc