summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/ximage/ximagepool.c2
-rw-r--r--sys/xvimage/xvimagepool.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/ximage/ximagepool.c b/sys/ximage/ximagepool.c
index f2f2aa28b..f46e2e7e1 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 a7123149e..f23818e97 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