rust-ffmpeg
rust-ffmpeg copied to clipboard
Fails to build on BSDs due to missing errno macros
https://github.com/netbsd/src/commit/b20799016416a1550612da0efc652dad38d3cf8b and https://github.com/netbsd/src/commit/9d85c4a5f887d1920ce625296deb03fc2064cf09 weren't adopted by DragonFly, FreeBSD, OpenBSD.
$ rustc -vV
rustc 1.52.1
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-unknown-freebsd
release: 1.52.1
LLVM version: 12.0.0
$ cargo build
[...]
error[E0432]: unresolved imports `libc::ENODATA`, `libc::ENOSR`, `libc::ENOSTR`, `libc::ETIME`
--> src/util/error.rs:20:22
|
20 | ENFILE, ENOBUFS, ENODATA, ENODEV, ENOENT, ENOEXEC, ENOLCK, ENOLINK, ENOMEM, ENOMSG,
| ^^^^^^^ no `ENODATA` in the root
21 | ENOPROTOOPT, ENOSPC, ENOSR, ENOSTR, ENOSYS, ENOTCONN, ENOTDIR, ENOTEMPTY, ENOTRECOVERABLE,
| ^^^^^ ^^^^^^ no `ENOSTR` in the root
| |
| no `ENOSR` in the root
22 | ENOTSOCK, ENOTSUP, ENOTTY, ENXIO, EOPNOTSUPP, EOVERFLOW, EOWNERDEAD, EPERM, EPIPE, EPROTO,
23 | EPROTONOSUPPORT, EPROTOTYPE, ERANGE, EROFS, ESPIPE, ESRCH, ETIME, ETIMEDOUT, ETXTBSY,
| ^^^^^ no `ETIME` in the root
|
help: a similar name exists in the module
|
21 | ENOPROTOOPT, ENOSPC, ENOSR, NOSTR, ENOSYS, ENOTCONN, ENOTDIR, ENOTEMPTY, ENOTRECOVERABLE,
| ^^^^^
help: a similar name exists in the module
|
23 | EPROTONOSUPPORT, EPROTOTYPE, ERANGE, EROFS, ESPIPE, ESRCH, VTIME, ETIMEDOUT, ETXTBSY,
| ^^^^^