../tests/weston-test-fixture-compositor.c:135:23: error: 'O_RDWR' undeclared (first use in this function)
Seeing this autobuilder error for weston 9.0.0 in buildroot.
[154/334] Compiling C object tests/libtest-client.a.p/weston-test-fixture-compositor.c.o
FAILED: tests/libtest-client.a.p/weston-test-fixture-compositor.c.o
/tmp/instance-0/output-1/host/bin/x86_64-linux-gcc -Itests/libtest-client.a.p -Itests -I../tests -I. -I.. -Iinclude -I../include -Icompositor -I../compositor -Iprotocol -I/tmp/instance-0/output-1/host/x86_64-buildroot-linux-musl/sysroot/usr/include -I/tmp/instance-0/output-1/host/x86_64-buildroot-linux-musl/sysroot/usr/include/pixman-1 -I/tmp/instance-0/output-1/host/x86_64-buildroot-linux-musl/sysroot/usr/include/cairo -I/tmp/instance-0/output-1/host/x86_64-buildroot-linux-musl/sysroot/usr/include/glib-2.0 -I/tmp/instance-0/output-1/host/x86_64-buildroot-linux-musl/sysroot/usr/lib/glib-2.0/include -I/tmp/instance-0/output-1/host/x86_64-buildroot-linux-musl/sysroot/usr/include/freetype2 -I/tmp/instance-0/output-1/host/x86_64-buildroot-linux-musl/sysroot/usr/include/uuid -I/tmp/instance-0/output-1/host/x86_64-buildroot-linux-musl/sysroot/usr/include/libpng16 -fdiagnostics-color=always -pipe -Wall -Winvalid-pch -Wextra -Wpedantic -std=gnu99 -O3 -Wmissing-prototypes -Wno-unused-parameter -Wno-shift-negative-value -Wno-missing-field-initializers -Wno-pedantic -fvisibility=hidden -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -fPIC -MD -MQ tests/libtest-client.a.p/weston-test-fixture-compositor.c.o -MF tests/libtest-client.a.p/weston-test-fixture-compositor.c.o.d -o tests/libtest-client.a.p/weston-test-fixture-compositor.c.o -c ../tests/weston-test-fixture-compositor.c
../tests/weston-test-fixture-compositor.c: In function 'wait_for_lock':
../tests/weston-test-fixture-compositor.c:135:7: warning: implicit declaration of function 'open'; did you mean 'popen'? [-Wimplicit-function-declaration]
fd = open(lock_path, O_RDWR | O_CLOEXEC | O_CREAT, 00700);
^~~~
popen
../tests/weston-test-fixture-compositor.c:135:23: error: 'O_RDWR' undeclared (first use in this function)
fd = open(lock_path, O_RDWR | O_CLOEXEC | O_CREAT, 00700);
^~~~~~
../tests/weston-test-fixture-compositor.c:135:23: note: each undeclared identifier is reported only once for each function it appears in
../tests/weston-test-fixture-compositor.c:135:32: error: 'O_CLOEXEC' undeclared (first use in this function); did you mean 'S_IEXEC'?
fd = open(lock_path, O_RDWR | O_CLOEXEC | O_CREAT, 00700);
^~~~~~~~~
S_IEXEC
../tests/weston-test-fixture-compositor.c:135:44: error: 'O_CREAT' undeclared (first use in this function); did you mean 'S_IREAD'?
fd = open(lock_path, O_RDWR | O_CLOEXEC | O_CREAT, 00700);
^~~~~~~
S_IREAD