summaryrefslogtreecommitdiff
path: root/src/ps2comm.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2014-08-29 07:57:41 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2014-09-17 14:48:55 +1000
commit475e0d3668097f4deb9448c8765dd12b3f15534f (patch)
treefb463e93485e4adabfda003578561a287e8fdbfe /src/ps2comm.h
parentae77fdfc8e57e612e8aa0e9b45bbea478a82c30b (diff)
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 <peter.hutterer@who-t.net> (cherry picked from commit 96e60a4ea242d2decf109835981ae186cc36f642)
Diffstat (limited to 'src/ps2comm.h')
-rw-r--r--src/ps2comm.h2
1 files changed, 2 insertions, 0 deletions
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"