tormol / uds

A unix domain sockets Rust library
Apache License 2.0
21 stars 9 forks source link

Compile error for android target #4

Closed Gamadril closed 3 years ago

Gamadril commented 3 years ago

I get compilation errors when uds is compiled for android (arm, NDK 22).

error[E0308]: mismatched types
  --> /Users/test/.cargo/registry/src/github.com-1ecc6299db9ec823/uds-0.2.1/src/ancillary.rs:90:30
   |
90 |         msg.msg_controllen = needed_capacity as ControlLen;
   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `i32`
tormol commented 3 years ago

Thanks for reporting this. I haven't tested it on android, but I'll add cross-checking for it to CI.

tormol commented 3 years ago

The fix is now released in version 0.2.2.