os: add missing header for BSDs after fd4be8b9ca (#16)

src/os/Process.cpp:105:9: error: use of undeclared identifier 'sigemptyset'
  105 |         sigemptyset(&set);
      |         ^
src/os/Process.cpp:106:21: error: use of undeclared identifier 'SIG_SETMASK'
  106 |         sigprocmask(SIG_SETMASK, &set, NULL);
      |                     ^
This commit is contained in:
Jan Beich 2024-11-09 20:30:25 +00:00 committed by GitHub
parent 60d3dece30
commit d504d45114
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,7 @@
#include <hyprutils/os/Process.hpp>
using namespace Hyprutils::OS;
#include <csignal>
#include <cstdio>
#include <unistd.h>
#include <cstring>