summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/xorg-app/xrandr/resolve_symbol_clash.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/xorg-app/xrandr/resolve_symbol_clash.patch')
-rw-r--r--meta/recipes-graphics/xorg-app/xrandr/resolve_symbol_clash.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xorg-app/xrandr/resolve_symbol_clash.patch b/meta/recipes-graphics/xorg-app/xrandr/resolve_symbol_clash.patch
new file mode 100644
index 0000000000..1ecf9563f6
--- /dev/null
+++ b/meta/recipes-graphics/xorg-app/xrandr/resolve_symbol_clash.patch
@@ -0,0 +1,33 @@
1---
2 xrandr.c | 6 +++---
3 1 file changed, 3 insertions(+), 3 deletions(-)
4
5--- xrandr-1.2.2.orig/xrandr.c
6+++ xrandr-1.2.2/xrandr.c
7@@ -189,7 +189,7 @@
8
9 #if HAS_RANDR_1_2
10 typedef enum _policy {
11- clone, extend
12+ policy_clone, extend
13 } policy_t;
14
15 typedef enum _relation {
16@@ -1602,7 +1602,7 @@
17 int ret = 0;
18 #if HAS_RANDR_1_2
19 output_t *output = NULL;
20- policy_t policy = clone;
21+ policy_t policy = policy_clone;
22 Bool setit_1_2 = False;
23 Bool query_1_2 = False;
24 Bool modeit = False;
25@@ -1863,7 +1863,7 @@
26 continue;
27 }
28 if (!strcmp ("--clone", argv[i])) {
29- policy = clone;
30+ policy = policy_clone;
31 setit_1_2 = True;
32 continue;
33 }