From 7d8f57083e703267e18c78256b0f37108337ff81 Mon Sep 17 00:00:00 2001 From: Hiroki Tagato Date: Tue, 6 Jan 2026 00:42:35 +0900 Subject: [PATCH] testers: add missing #include (#12862) FreeBSD clang needs the header to be included for read(), write(), pipe(), close(), etc. --- hyprtester/clients/child-window.cpp | 3 ++- hyprtester/clients/pointer-scroll.cpp | 1 + hyprtester/clients/pointer-warp.cpp | 1 + hyprtester/src/tests/clients/child-window.cpp | 3 ++- hyprtester/src/tests/clients/pointer-scroll.cpp | 1 + hyprtester/src/tests/clients/pointer-warp.cpp | 1 + hyprtester/src/tests/main/window.cpp | 1 + 7 files changed, 9 insertions(+), 2 deletions(-) diff --git a/hyprtester/clients/child-window.cpp b/hyprtester/clients/child-window.cpp index 30bc3fe10..5f66be6b8 100644 --- a/hyprtester/clients/child-window.cpp +++ b/hyprtester/clients/child-window.cpp @@ -3,6 +3,7 @@ #include #include #include +#include #include #include @@ -332,4 +333,4 @@ int main(int argc, char** argv) { wl_display_disconnect(display); return 0; -} \ No newline at end of file +} diff --git a/hyprtester/clients/pointer-scroll.cpp b/hyprtester/clients/pointer-scroll.cpp index 140e4700f..59120961e 100644 --- a/hyprtester/clients/pointer-scroll.cpp +++ b/hyprtester/clients/pointer-scroll.cpp @@ -2,6 +2,7 @@ #include #include #include +#include #include #include #include diff --git a/hyprtester/clients/pointer-warp.cpp b/hyprtester/clients/pointer-warp.cpp index 2d3624d52..a57f99ae3 100644 --- a/hyprtester/clients/pointer-warp.cpp +++ b/hyprtester/clients/pointer-warp.cpp @@ -2,6 +2,7 @@ #include #include #include +#include #include #include #include diff --git a/hyprtester/src/tests/clients/child-window.cpp b/hyprtester/src/tests/clients/child-window.cpp index 1740b029b..1b497c3db 100644 --- a/hyprtester/src/tests/clients/child-window.cpp +++ b/hyprtester/src/tests/clients/child-window.cpp @@ -8,6 +8,7 @@ #include #include +#include #include #include @@ -120,4 +121,4 @@ static bool test() { return !ret; } -REGISTER_CLIENT_TEST_FN(test); \ No newline at end of file +REGISTER_CLIENT_TEST_FN(test); diff --git a/hyprtester/src/tests/clients/pointer-scroll.cpp b/hyprtester/src/tests/clients/pointer-scroll.cpp index d54d82de1..b5fb68fbc 100644 --- a/hyprtester/src/tests/clients/pointer-scroll.cpp +++ b/hyprtester/src/tests/clients/pointer-scroll.cpp @@ -8,6 +8,7 @@ #include #include +#include #include #include diff --git a/hyprtester/src/tests/clients/pointer-warp.cpp b/hyprtester/src/tests/clients/pointer-warp.cpp index 8593ee6c3..be992566d 100644 --- a/hyprtester/src/tests/clients/pointer-warp.cpp +++ b/hyprtester/src/tests/clients/pointer-warp.cpp @@ -8,6 +8,7 @@ #include #include +#include #include #include diff --git a/hyprtester/src/tests/main/window.cpp b/hyprtester/src/tests/main/window.cpp index fbaffa18c..ea44cb24a 100644 --- a/hyprtester/src/tests/main/window.cpp +++ b/hyprtester/src/tests/main/window.cpp @@ -1,3 +1,4 @@ +#include #include #include #include