summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-13 18:02:37 +0200
committerwm4 <wm4@nowhere>2016-09-13 18:26:06 +0200
commit060599ac6a0e451ebdda8cbd15473ad04ad7d310 (patch)
tree079cd5cc61508a5df5451fcc1ef3c5238b73c537 /video
parent0ccceecdc61ba913d7dc591432ebd3b00836b9bd (diff)
downloadmpv-060599ac6a0e451ebdda8cbd15473ad04ad7d310.tar.bz2
mpv-060599ac6a0e451ebdda8cbd15473ad04ad7d310.tar.xz
vo_x11: fix some ifdeffery
This failed to compile when xext was not available.
Diffstat (limited to 'video')
-rw-r--r--video/out/vo_x11.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/vo_x11.c b/video/out/vo_x11.c
index 1dfab562b2..9540fd96b6 100644
--- a/video/out/vo_x11.c
+++ b/video/out/vo_x11.c
@@ -37,7 +37,7 @@
#include "x11_common.h"
-#if HAVE_SHM
+#if HAVE_SHM && HAVE_XEXT
#include <sys/ipc.h>
#include <sys/shm.h>
#include <X11/extensions/XShm.h>
@@ -78,7 +78,7 @@ struct priv {
int current_buf;
-#if HAVE_SHM
+#if HAVE_SHM && HAVE_XEXT
int Shmem_Flag;
XShmSegmentInfo Shminfo[2];
int Shm_Warned_Slow;