summaryrefslogtreecommitdiffstats
path: root/video/out/vo_x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/vo_x11.c')
-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;