Add missing headers for BSDs

src/allocator/GBM.cpp:137:17: error: use of undeclared identifier 'close'
  137 |                 close(attrs.fds.at(j));
      |                 ^
src/allocator/GBM.cpp:159:9: error: use of undeclared identifier 'close'
  159 |         close(attrs.fds.at(i));
      |         ^
src/backend/Session.cpp:141:5: error: use of undeclared identifier 'close'
  141 |     close(fd);
      |     ^
src/backend/Wayland.cpp:44:9: error: use of undeclared identifier 'close'
   44 |         close(fd);
      |         ^
src/backend/Wayland.cpp:63:9: error: use of undeclared identifier 'close'
   63 |         close(drmState.fd);
      |         ^
src/backend/Wayland.cpp:658:13: error: use of undeclared identifier 'close'
  658 |             close(fd);
      |             ^
src/backend/Wayland.cpp:668:13: error: use of undeclared identifier 'close'
  668 |             close(fd);
      |             ^
src/backend/Wayland.cpp:676:9: error: use of undeclared identifier 'close'
  676 |         close(fd);
      |         ^
This commit is contained in:
Jan Beich 2024-07-06 17:51:46 +02:00 committed by Mihai Fufezan
parent d8525fbd63
commit 5d08afba5a
3 changed files with 3 additions and 0 deletions

View file

@ -5,6 +5,7 @@
#include "Shared.hpp" #include "Shared.hpp"
#include <xf86drm.h> #include <xf86drm.h>
#include <gbm.h> #include <gbm.h>
#include <unistd.h>
using namespace Aquamarine; using namespace Aquamarine;
using namespace Hyprutils::Memory; using namespace Hyprutils::Memory;

View file

@ -9,6 +9,7 @@ extern "C" {
#include <sys/stat.h> #include <sys/stat.h>
#include <xf86drmMode.h> #include <xf86drmMode.h>
#include <linux/input.h> #include <linux/input.h>
#include <unistd.h>
} }
using namespace Aquamarine; using namespace Aquamarine;

View file

@ -8,6 +8,7 @@
#include <gbm.h> #include <gbm.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <unistd.h>
using namespace Aquamarine; using namespace Aquamarine;
using namespace Hyprutils::Memory; using namespace Hyprutils::Memory;