mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-11-17 04:56:00 +01:00
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:
parent
d8525fbd63
commit
5d08afba5a
3 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue