chithanh    15/03/30 12:03:31

  Added:                xf86-input-synaptics-1.7-glibc-2.20.patch
  Log:
  Version bump. Fix older versions to build against glibc-2.20, bug #544904. 
Remove old.
  
  (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 
0x2324E7B566DF2611!)

Revision  Changes    Path
1.1                  
x11-drivers/xf86-input-synaptics/files/xf86-input-synaptics-1.7-glibc-2.20.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-drivers/xf86-input-synaptics/files/xf86-input-synaptics-1.7-glibc-2.20.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-drivers/xf86-input-synaptics/files/xf86-input-synaptics-1.7-glibc-2.20.patch?rev=1.1&content-type=text/plain

Index: xf86-input-synaptics-1.7-glibc-2.20.patch
===================================================================
>From 96e60a4ea242d2decf109835981ae186cc36f642 Mon Sep 17 00:00:00 2001
From: Peter Hutterer <[email protected]>
Date: Fri, 29 Aug 2014 07:57:41 +1000
Subject: Include xorg-server.h to fix build errors on newest glibc

In file included from /usr/include/string.h:634:0,
                 from /usr/include/xorg/os.h:53,
                 from /usr/include/xorg/misc.h:115,
                 from /usr/include/xorg/xf86str.h:37,
                 from /usr/include/xorg/xf86Xinput.h:54,
                 from synproto.h:36,
                 from synproto.c:24:
/usr/include/xorg/os.h:579:1: error: expected identifier or '(' before 
'__extension__'
 strndup(const char *str, size_t n);

See http://lists.freedesktop.org/archives/xorg-devel/2014-July/043070.html

Signed-off-by: Peter Hutterer <[email protected]>

diff --git a/src/eventcomm.h b/src/eventcomm.h
index 4d759ff..e0f8743 100644
--- a/src/eventcomm.h
+++ b/src/eventcomm.h
@@ -27,6 +27,8 @@
 #ifndef _EVENTCOMM_H_
 #define _EVENTCOMM_H_
 
+#include <xorg-server.h>
+
 #include <linux/input.h>
 #include <linux/version.h>
 #include <xf86Xinput.h>
diff --git a/src/ps2comm.h b/src/ps2comm.h
index 2be55e4..fa71d10 100644
--- a/src/ps2comm.h
+++ b/src/ps2comm.h
@@ -22,6 +22,8 @@
 #ifndef _PS2COMM_H_
 #define _PS2COMM_H_
 
+#include <xorg-server.h>
+
 #include <unistd.h>
 #include <sys/ioctl.h>
 #include "xf86_OSproc.h"
diff --git a/src/synproto.h b/src/synproto.h
index c52838c..6ba6740 100644
--- a/src/synproto.h
+++ b/src/synproto.h
@@ -31,6 +31,8 @@
 #include "config.h"
 #endif
 
+#include <xorg-server.h>
+
 #include <unistd.h>
 #include <sys/ioctl.h>
 #include <xf86Xinput.h>
-- 
cgit v0.10.2





Reply via email to