I had to work fix missing #ifdefs here, as for some reason configure
here doesn't detect shm extensions.

François.

Index: x11.c
===================================================================
RCS file: /sources/qemacs/qemacs/x11.c,v
retrieving revision 1.40
diff -u -r1.40 x11.c
--- x11.c       7 Mar 2016 10:35:23 -0000       1.40
+++ x11.c       21 May 2016 21:31:02 -0000
@@ -1563,9 +1563,11 @@
     if (b->flags & QEBITMAP_FLAG_VIDEO) {
 #if defined(CONFIG_XV)
         if (xv_port != 0 && xv_open_count == 0) {
+#ifdef CONFIG_XSHM
             if (shm_use)
                 xb->type = BMP_XVSHMIMAGE;
             else
+#endif
                 xb->type = BMP_XVIMAGE;
             b->format = s->video_format;
             xv_open_count++;
@@ -1639,6 +1641,7 @@
             xb->u.xvimage = xvimage;
         }
         break;
+#ifdef CONFIG_XSHM
     case BMP_XVSHMIMAGE:
         {
             XvImage *xvimage;
@@ -1664,6 +1667,7 @@
         }
         break;
 #endif
+#endif
     }
     return 0;
  fail:
@@ -1697,6 +1701,7 @@
         XFree(xb->u.xvimage);
         xv_open_count--;
         break;
+#ifdef CONFIG_XSHM
     case BMP_XVSHMIMAGE:
         XShmDetach(display, xb->shm_info);
         XFree(xb->u.xvimage);
@@ -1705,6 +1710,7 @@
         xv_open_count--;
         break;
 #endif
+#endif
     }
     qe_free(&b->priv_data);
 }

_______________________________________________
Qemacs-devel mailing list
Qemacs-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/qemacs-devel

Reply via email to