diff options
author | Alon Levy <alevy@redhat.com> | 2013-08-04 11:58:25 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2013-08-04 11:58:27 +0200 |
commit | 160ab4b471791e6fd06ebe2783488d4acbfee88e (patch) | |
tree | 52127aa17f40c640d2ef7b18635908ce0ec5c121 | |
parent | 6cb2e1c53e1b5095a98d070dce7c5260e244b01f (diff) |
gtk/channel-display: only use SysV shm for x11
-rw-r--r-- | gtk/channel-display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/channel-display.c b/gtk/channel-display.c index 14c80d2..75fa8c2 100644 --- a/gtk/channel-display.c +++ b/gtk/channel-display.c @@ -746,7 +746,7 @@ static int create_canvas(SpiceChannel *channel, display_surface *surface) } CHANNEL_DEBUG(channel, "Create primary canvas"); -#ifdef HAVE_SYS_SHM_H +#if defined(WITH_X11) && defined(HAVE_SYS_SHM_H) surface->shmid = shmget(IPC_PRIVATE, surface->size, IPC_CREAT | 0777); if (surface->shmid >= 0) { surface->data = shmat(surface->shmid, 0, 0); |