From 92d61f13b980e4ecc16724e2b0d823dd4f9a820b Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Mon, 2 May 2011 14:48:48 -0400 Subject: mmap shm buffers read/write --- wayland/wayland-shm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wayland/wayland-shm.c b/wayland/wayland-shm.c index ccdae1c..5f46293 100644 --- a/wayland/wayland-shm.c +++ b/wayland/wayland-shm.c @@ -140,7 +140,8 @@ shm_create_buffer(struct wl_client *client, struct wl_shm *shm, return; } - data = mmap(NULL, stride * height, PROT_READ, MAP_SHARED, fd, 0); + data = mmap(NULL, stride * height, + PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); close(fd); if (data == MAP_FAILED) { -- cgit v1.2.3