3
0
mirror of https://github.com/hyprwm/Hyprland.git synced 2026-02-04 10:25:35 +00:00

testers: add missing #include <unistd.h> (#12862)

FreeBSD clang needs the header to be included for read(), write(),
pipe(), close(), etc.
This commit is contained in:
Hiroki Tagato
2026-01-06 00:42:35 +09:00
committed by GitHub
parent a3c8533d74
commit 7d8f57083e
7 changed files with 9 additions and 2 deletions

View File

@ -3,6 +3,7 @@
#include <sys/mman.h>
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
#include <wayland-client.h>
#include <wayland.hpp>
@ -332,4 +333,4 @@ int main(int argc, char** argv) {
wl_display_disconnect(display);
return 0;
}
}

View File

@ -2,6 +2,7 @@
#include <sys/poll.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <unistd.h>
#include <print>
#include <format>
#include <string>

View File

@ -2,6 +2,7 @@
#include <sys/poll.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <unistd.h>
#include <print>
#include <format>
#include <string>

View File

@ -8,6 +8,7 @@
#include <hyprutils/os/Process.hpp>
#include <sys/poll.h>
#include <unistd.h>
#include <csignal>
#include <thread>
@ -120,4 +121,4 @@ static bool test() {
return !ret;
}
REGISTER_CLIENT_TEST_FN(test);
REGISTER_CLIENT_TEST_FN(test);

View File

@ -8,6 +8,7 @@
#include <hyprutils/os/Process.hpp>
#include <sys/poll.h>
#include <unistd.h>
#include <csignal>
#include <thread>

View File

@ -8,6 +8,7 @@
#include <hyprutils/os/Process.hpp>
#include <sys/poll.h>
#include <unistd.h>
#include <csignal>
#include <thread>

View File

@ -1,3 +1,4 @@
#include <unistd.h>
#include <cmath>
#include <chrono>
#include <cstdlib>