Fails to build on BSDs
Regressed by 46d092ae. ENODATA
(from STREAMS) is marked obsolete by POSIX. Affects at least DragonFly, FreeBSD, OpenBSD.
$ cc --version
FreeBSD clang version 9.0.0 (tags/RELEASE_900/final 372316) (based on LLVM 9.0.0)
Target: x86_64-unknown-freebsd13.0
Thread model: posix
InstalledDir: /usr/bin
$ pkg install meson nasm
$ meson _build; ninja -C _build
[...]
FAILED: tools/f9d35d4@@dav1d_input@sta/input_input.c.o
cc -Itools/f9d35d4@@dav1d_input@sta -Itools -I../tools -I. -I../ -Iinclude/dav1d -I../include/dav1d -Iinclude -I../include -Xclang -fcolor-diagnostics -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c99 -O3 -D_POSIX_C_SOURCE=200112L -fvisibility=hidden -Wundef -Werror=vla -Wno-missing-field-initializers -Wno-unused-parameter -Werror=missing-prototypes -Wshorten-64-to-32 -fomit-frame-pointer -ffast-math -fPIC -MD -MQ 'tools/f9d35d4@@dav1d_input@sta/input_input.c.o' -MF 'tools/f9d35d4@@dav1d_input@sta/input_input.c.o.d' -o 'tools/f9d35d4@@dav1d_input@sta/input_input.c.o' -c ../tools/input/input.c
../tools/input/input.c:96:57: error: use of undeclared identifier 'ENODATA'
return errno ? DAV1D_ERR(errno) : DAV1D_ERR(ENODATA);
^
1 error generated.