mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-14 18:58:10 +02:00
musl libc (unlike glibc) requires explicitly incuding fcntl.h to define open(), O_RDWR, O_CLOEXEC and O_CREAT. Otherwise the build fails with the errors: | ../weston-9.0.0/tests/weston-test-fixture-compositor.c: In function 'wait_for_lock': | ../weston-9.0.0/tests/weston-test-fixture-compositor.c:135:7: warning: implicit declaration of function 'open'; did you mean 'popen'? [-Wimplicit-function-declaration] | 135 | fd = open(lock_path, O_RDWR | O_CLOEXEC | O_CREAT, 00700); | | ^~~~ | | popen | ../weston-9.0.0/tests/weston-test-fixture-compositor.c:135:23: error: 'O_RDWR' undeclared (first use in this function) | 135 | fd = open(lock_path, O_RDWR | O_CLOEXEC | O_CREAT, 00700); | | ^~~~~~ | ../weston-9.0.0/tests/weston-test-fixture-compositor.c:135:23: note: each undeclared identifier is reported only once for each function it appears in | ../weston-9.0.0/tests/weston-test-fixture-compositor.c:135:32: error: 'O_CLOEXEC' undeclared (first use in this function) | 135 | fd = open(lock_path, O_RDWR | O_CLOEXEC | O_CREAT, 00700); | | ^~~~~~~~~ | ../weston-9.0.0/tests/weston-test-fixture-compositor.c:135:44: error: 'O_CREAT' undeclared (first use in this function) | 135 | fd = open(lock_path, O_RDWR | O_CLOEXEC | O_CREAT, 00700); | | ^~~~~~~ Signed-off-by: Denys Dmytriyenko <denys@ti.com> |
||
|---|---|---|
| .. | ||
| reference | ||
| bad-buffer-test.c | ||
| buffer-transforms-test.c | ||
| config-parser-test.c | ||
| devices-test.c | ||
| drm-smoke-test.c | ||
| event-test.c | ||
| input-timestamps-helper.c | ||
| input-timestamps-helper.h | ||
| internal-screenshot-test.c | ||
| ivi-layout-internal-test.c | ||
| ivi-layout-test-client.c | ||
| ivi-layout-test-plugin.c | ||
| ivi-shell-app-test.c | ||
| ivi-test.h | ||
| keyboard-test.c | ||
| linux-explicit-synchronization-test.c | ||
| matrix-test.c | ||
| meson.build | ||
| output-transforms-test.c | ||
| plugin-registry-test.c | ||
| pointer-test.c | ||
| presentation-test.c | ||
| roles-test.c | ||
| setbacklight.c | ||
| string-test.c | ||
| subsurface-shot-test.c | ||
| subsurface-test.c | ||
| surface-global-test.c | ||
| surface-screenshot-test.c | ||
| surface-test.c | ||
| text-test.c | ||
| timespec-test.c | ||
| touch-test.c | ||
| vertex-clip-test.c | ||
| viewporter-shot-test.c | ||
| viewporter-test.c | ||
| weston-test-client-helper.c | ||
| weston-test-client-helper.h | ||
| weston-test-desktop-shell.c | ||
| weston-test-fixture-compositor.c | ||
| weston-test-fixture-compositor.h | ||
| weston-test-runner.c | ||
| weston-test-runner.h | ||
| weston-test.c | ||
| weston-testsuite-data.h | ||
| xwayland-test.c | ||