summaryrefslogtreecommitdiffstats
path: root/libhb/ports.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2019-03-09 08:26:57 -0700
committerJohn Stebbins <[email protected]>2019-03-09 08:28:07 -0700
commita05c54f3e3112a11b5326810a3e6e4bd4366c56c (patch)
treea518cd86798bd1a8d4988be2bb719da39962bb8b /libhb/ports.c
parent9ce2f651e9161fb16e9972e414c32976fa83ed22 (diff)
qsv: fix building without qsv when libdrm is not present
Fixes https://github.com/HandBrake/HandBrake/issues/1960
Diffstat (limited to 'libhb/ports.c')
-rw-r--r--libhb/ports.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libhb/ports.c b/libhb/ports.c
index c9d2dcd11..936587bdc 100644
--- a/libhb/ports.c
+++ b/libhb/ports.c
@@ -70,7 +70,9 @@
#include <linux/cdrom.h>
#include <fcntl.h>
#include <sys/ioctl.h>
+#ifdef USE_QSV
#include <libdrm/drm.h>
+#endif
#elif defined( SYS_OPENBSD )
#include <sys/dvdio.h>
#include <fcntl.h>