drm: add missing include to fix BSD (#42)

src/backend/drm/Renderer.cpp:504:13: error: use of undeclared identifier 'close'
  504 |             close(dupFd);
      |             ^
src/backend/drm/Renderer.cpp:532:13: error: use of undeclared identifier 'close'
  532 |             close(egl.lastBlitSyncFD);
      |             ^
This commit is contained in:
Jan Beich 2024-08-06 20:06:30 +00:00 committed by GitHub
parent 940980244e
commit 131ed05f99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -3,6 +3,7 @@
#include <xf86drmMode.h> #include <xf86drmMode.h>
#include <cstring> #include <cstring>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h>
#include "Math.hpp" #include "Math.hpp"
#include "Shared.hpp" #include "Shared.hpp"
#include "FormatUtils.hpp" #include "FormatUtils.hpp"