summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/xorg-driver/xf86-input-synaptics/always_include_xorg_server.h.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/xorg-driver/xf86-input-synaptics/always_include_xorg_server.h.patch')
-rw-r--r--meta/recipes-graphics/xorg-driver/xf86-input-synaptics/always_include_xorg_server.h.patch60
1 files changed, 60 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xorg-driver/xf86-input-synaptics/always_include_xorg_server.h.patch b/meta/recipes-graphics/xorg-driver/xf86-input-synaptics/always_include_xorg_server.h.patch
new file mode 100644
index 0000000000..f36bb7579d
--- /dev/null
+++ b/meta/recipes-graphics/xorg-driver/xf86-input-synaptics/always_include_xorg_server.h.patch
@@ -0,0 +1,60 @@
1From 96e60a4ea242d2decf109835981ae186cc36f642 Mon Sep 17 00:00:00 2001
2From: Peter Hutterer <peter.hutterer@who-t.net>
3Date: Fri, 29 Aug 2014 07:57:41 +1000
4Subject: Include xorg-server.h to fix build errors on newest glibc
5
6In file included from /usr/include/string.h:634:0,
7 from /usr/include/xorg/os.h:53,
8 from /usr/include/xorg/misc.h:115,
9 from /usr/include/xorg/xf86str.h:37,
10 from /usr/include/xorg/xf86Xinput.h:54,
11 from synproto.h:36,
12 from synproto.c:24:
13/usr/include/xorg/os.h:579:1: error: expected identifier or '(' before '__extension__'
14 strndup(const char *str, size_t n);
15
16See http://lists.freedesktop.org/archives/xorg-devel/2014-July/043070.html
17
18Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
19
20Status: Backport
21
22Index: xf86-input-synaptics-1.8.0/src/eventcomm.h
23===================================================================
24--- xf86-input-synaptics-1.8.0.orig/src/eventcomm.h 2014-08-28 18:40:28.628070587 -0700
25+++ xf86-input-synaptics-1.8.0/src/eventcomm.h 2014-08-28 18:40:28.620070587 -0700
26@@ -27,6 +27,8 @@
27 #ifndef _EVENTCOMM_H_
28 #define _EVENTCOMM_H_
29
30+#include <xorg-server.h>
31+
32 #include <linux/input.h>
33 #include <linux/version.h>
34 #include <xf86Xinput.h>
35Index: xf86-input-synaptics-1.8.0/src/ps2comm.h
36===================================================================
37--- xf86-input-synaptics-1.8.0.orig/src/ps2comm.h 2014-08-28 18:40:28.628070587 -0700
38+++ xf86-input-synaptics-1.8.0/src/ps2comm.h 2014-08-28 18:40:28.620070587 -0700
39@@ -22,6 +22,8 @@
40 #ifndef _PS2COMM_H_
41 #define _PS2COMM_H_
42
43+#include <xorg-server.h>
44+
45 #include <unistd.h>
46 #include <sys/ioctl.h>
47 #include "xf86_OSproc.h"
48Index: xf86-input-synaptics-1.8.0/src/synproto.h
49===================================================================
50--- xf86-input-synaptics-1.8.0.orig/src/synproto.h 2014-08-28 18:40:28.628070587 -0700
51+++ xf86-input-synaptics-1.8.0/src/synproto.h 2014-08-28 18:40:28.624070587 -0700
52@@ -31,6 +31,8 @@
53 #include "config.h"
54 #endif
55
56+#include <xorg-server.h>
57+
58 #include <unistd.h>
59 #include <sys/ioctl.h>
60 #include <xf86Xinput.h>