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:
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
#include <sys/poll.h>
|
||||
#include <sys/mman.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <print>
|
||||
#include <format>
|
||||
#include <string>
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
#include <sys/poll.h>
|
||||
#include <sys/mman.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <print>
|
||||
#include <format>
|
||||
#include <string>
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -8,6 +8,7 @@
|
||||
#include <hyprutils/os/Process.hpp>
|
||||
|
||||
#include <sys/poll.h>
|
||||
#include <unistd.h>
|
||||
#include <csignal>
|
||||
#include <thread>
|
||||
|
||||
|
||||
@ -8,6 +8,7 @@
|
||||
#include <hyprutils/os/Process.hpp>
|
||||
|
||||
#include <sys/poll.h>
|
||||
#include <unistd.h>
|
||||
#include <csignal>
|
||||
#include <thread>
|
||||
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
#include <unistd.h>
|
||||
#include <cmath>
|
||||
#include <chrono>
|
||||
#include <cstdlib>
|
||||
|
||||
Reference in New Issue
Block a user