From ea168e611b93f25d0c2bdc5d2637c712da4d7b9f Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Sat, 6 Jul 2024 17:51:46 +0200 Subject: [PATCH] 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); | ^ --- src/allocator/GBM.cpp | 1 + src/backend/Session.cpp | 1 + src/backend/Wayland.cpp | 1 + 3 files changed, 3 insertions(+) diff --git a/src/allocator/GBM.cpp b/src/allocator/GBM.cpp index b533e9b..5a3757c 100644 --- a/src/allocator/GBM.cpp +++ b/src/allocator/GBM.cpp @@ -5,6 +5,7 @@ #include "Shared.hpp" #include #include +#include using namespace Aquamarine; using namespace Hyprutils::Memory; diff --git a/src/backend/Session.cpp b/src/backend/Session.cpp index 5ec4b48..9bf0fd9 100644 --- a/src/backend/Session.cpp +++ b/src/backend/Session.cpp @@ -9,6 +9,7 @@ extern "C" { #include #include #include +#include } using namespace Aquamarine; diff --git a/src/backend/Wayland.cpp b/src/backend/Wayland.cpp index 399d5a9..537e12b 100644 --- a/src/backend/Wayland.cpp +++ b/src/backend/Wayland.cpp @@ -8,6 +8,7 @@ #include #include #include +#include using namespace Aquamarine; using namespace Hyprutils::Memory;