From 1a2dd1860b0fa145f2dec2e19af2d4931ac923db Mon Sep 17 00:00:00 2001 From: Cyril Hrubis Date: Sat, 9 Feb 2013 21:51:32 +0100 Subject: [PATCH] backends: X11: Fix build without MIT SHM. --- libs/backends/GP_X11.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/backends/GP_X11.c b/libs/backends/GP_X11.c index 2dd17a0e..f7a3fa4c 100644 --- a/libs/backends/GP_X11.c +++ b/libs/backends/GP_X11.c @@ -58,8 +58,9 @@ struct x11_priv { #ifdef HAVE_X_SHM XShmSegmentInfo shminfo; - GP_Context context; #endif /* HAVE_X_SHM */ + + GP_Context context; int resized_flag:1; int shm_flag:1; @@ -431,6 +432,7 @@ static int resize_shm_ximage(GP_Backend GP_UNUSED(*self), int GP_UNUSED(w), int GP_UNUSED(h)) { GP_WARN("Stub called"); + return 1; } #endif /* HAVE_X_SHM */ -- 2.11.4.GIT