Geal / rust-syslog

Send syslog messages from Rust
MIT License
110 stars 55 forks source link

EPROTOTYPE is not constant between platforms #59

Closed oherrala closed 2 years ago

oherrala commented 2 years ago

In the commit 01625ab131323e8df79d306d5a97d33045f97817 a dependency to libc crate was removed and EPROTOTYPE was hard coded as constant with value 91. However, this is not portable between platforms.

Quick grep over libc crate's source code reveals that EPROTOTYPE can be (this is not definitive list):

Geal commented 2 years ago

damn, I thought I had checked for that. damn I thought I had checked for that. This is fixed in 6.0.1