x11: fix build without XSHM
authorJonathan Lyons <jclyons at wesleyan.edu>
Mon, 2 Apr 2012 09:37:43 +0000 (11:37 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 2 Apr 2012 09:37:43 +0000 (11:37 +0200)
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=673327

sys/ximage/ximagepool.c
sys/xvimage/xvimagepool.c

index f2f2aa2..f46e2e7 100644 (file)
@@ -259,6 +259,7 @@ create_failed:
         ("could not XShmCreateImage a %dx%d image", width, height));
     goto beach;
   }
+#ifdef HAVE_XSHM
 shmget_failed:
   {
     g_mutex_unlock (ximagesink->x_lock);
@@ -290,6 +291,7 @@ xattach_failed:
             width, height), ("Failed to XShmAttach"));
     goto beach;
   }
+#endif
 }
 
 static void
index a712314..f23818e 100644 (file)
@@ -293,6 +293,7 @@ create_failed:
         ("could not XvShmCreateImage a %dx%d image", width, height));
     goto beach;
   }
+#ifdef HAVE_XSHM
 shmget_failed:
   {
     g_mutex_unlock (xvimagesink->x_lock);
@@ -324,6 +325,7 @@ xattach_failed:
             width, height), ("Failed to XShmAttach"));
     goto beach;
   }
+#endif
 }
 
 static void