diff options
Diffstat (limited to 'recipes-graphics/wayland/weston/0001-DRM-condition.patch')
-rw-r--r-- | recipes-graphics/wayland/weston/0001-DRM-condition.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/recipes-graphics/wayland/weston/0001-DRM-condition.patch b/recipes-graphics/wayland/weston/0001-DRM-condition.patch new file mode 100644 index 0000000..93eab54 --- /dev/null +++ b/recipes-graphics/wayland/weston/0001-DRM-condition.patch | |||
@@ -0,0 +1,46 @@ | |||
1 | From e1bfeb25d4d2d2ef6002986cca615817848b27dd Mon Sep 17 00:00:00 2001 | ||
2 | From: Prabhu Sundararaj <prabhu.sundararaj@freescale.com> | ||
3 | Date: Thu, 11 Apr 2013 23:27:31 -0500 | ||
4 | Subject: [PATCH] DRM condition | ||
5 | |||
6 | Signed-off-by: Prabhu Sundararaj <prabhu.sundararaj@freescale.com> | ||
7 | --- | ||
8 | src/launcher-util.c | 8 ++++++-- | ||
9 | 1 file changed, 6 insertions(+), 2 deletions(-) | ||
10 | |||
11 | diff --git a/src/launcher-util.c b/src/launcher-util.c | ||
12 | index 9196e4f..7168f60 100644 | ||
13 | --- a/src/launcher-util.c | ||
14 | +++ b/src/launcher-util.c | ||
15 | @@ -30,9 +30,9 @@ | ||
16 | #include <sys/stat.h> | ||
17 | #include <sys/uio.h> | ||
18 | #include <fcntl.h> | ||
19 | - | ||
20 | +#if defined(DRM) | ||
21 | #include <xf86drm.h> | ||
22 | - | ||
23 | +#endif | ||
24 | #include "compositor.h" | ||
25 | #include "launcher-util.h" | ||
26 | #include "weston-launch.h" | ||
27 | @@ -107,6 +107,7 @@ int | ||
28 | weston_launcher_drm_set_master(struct weston_compositor *compositor, | ||
29 | int drm_fd, char master) | ||
30 | { | ||
31 | +#if defined(DRM) | ||
32 | struct msghdr msg; | ||
33 | struct cmsghdr *cmsg; | ||
34 | struct iovec iov; | ||
35 | @@ -156,5 +157,8 @@ weston_launcher_drm_set_master(struct weston_compositor *compositor, | ||
36 | return -1; | ||
37 | |||
38 | return ret; | ||
39 | +#else | ||
40 | + return 0; | ||
41 | +#endif | ||
42 | } | ||
43 | |||
44 | -- | ||
45 | 1.8.1.4 | ||
46 | |||