Skip to content

Commit

Permalink
Merge pull request neutrinolabs#331 from metalefty/drm
Browse files Browse the repository at this point in the history
Include drm.h only if glamor enabled
  • Loading branch information
metalefty authored Aug 6, 2024
2 parents 3455a7d + 3094f66 commit 5eb6e81
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions xrdpdev/xrdpdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ This is the main driver file

#include <xf86Modes.h>

#include <sys/ioctl.h>
#include <drm.h>

#include "rdp.h"
#include "rdpPri.h"
#include "rdpDraw.h"
Expand All @@ -69,7 +66,9 @@ This is the main driver file
#include "xrdpdri2.h"
#include "xrdpdri3.h"
#include "rdpEgl.h"
#include <drm.h>
#include <glamor.h>
#include <sys/ioctl.h>
/* use environment variable XORGXRDP_DRM_DEVICE to override
* also read from xorg.conf file */
char g_drm_device[128] = "/dev/dri/renderD128";
Expand Down

0 comments on commit 5eb6e81

Please sign in to comment.