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 #include #include @@ -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;