From: Kristian Høgsberg Date: Mon, 2 May 2011 18:48:48 +0000 (-0400) Subject: mmap shm buffers read/write X-Git-Tag: 0.85.0~139 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=92d61f13b980e4ecc16724e2b0d823dd4f9a820b;p=profile%2Fivi%2Fwayland.git mmap shm buffers read/write --- 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) {