diff --git a/sys/ximage/ximagepool.c b/sys/ximage/ximagepool.c index f2f2aa28b2..f46e2e7e11 100644 --- a/sys/ximage/ximagepool.c +++ b/sys/ximage/ximagepool.c @@ -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 diff --git a/sys/xvimage/xvimagepool.c b/sys/xvimage/xvimagepool.c index a7123149ee..f23818e974 100644 --- a/sys/xvimage/xvimagepool.c +++ b/sys/xvimage/xvimagepool.c @@ -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