aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2006-04-07 17:30:27 +0000
committerAdam Jackson <ajax@nwnk.net>2006-04-07 17:30:27 +0000
commitad4d62e1d318c629f994883e3b9926627bec16f0 (patch)
treecc79910057a1ad104071325b0e512584e38fad56 /src
parentFix the fd pointer leak reported by primer. (Not the same patch.) (diff)
downloadxf86-input-evdev-ad4d62e1d318c629f994883e3b9926627bec16f0.tar.gz
xf86-input-evdev-ad4d62e1d318c629f994883e3b9926627bec16f0.tar.bz2
xf86-input-evdev-ad4d62e1d318c629f994883e3b9926627bec16f0.zip
Unlibcwrap. Bump server version requirement. Bump to 1.1.0.evdev-1_1_0
Diffstat (limited to 'src')
-rw-r--r--src/evdev.c5
-rw-r--r--src/evdev.h4
-rw-r--r--src/evdev_abs.c6
-rw-r--r--src/evdev_btn.c6
-rw-r--r--src/evdev_key.c6
-rw-r--r--src/evdev_rel.c6
6 files changed, 5 insertions, 28 deletions
diff --git a/src/evdev.c b/src/evdev.c
index 3a2e397..ee35a26 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -63,9 +63,6 @@
#include <string.h>
-/* The libc wrapper just blows... linux/input.h must be included
- * before xf86_ansic.h and xf86_libc.h so we avoid defining ioctl
- * twice. */
#include "evdev.h"
#include <xf86.h>
@@ -485,7 +482,7 @@ static XF86ModuleVersionInfo EvdevVersionRec =
MODINFOSTRING1,
MODINFOSTRING2,
0, /* Missing from SDK: XORG_VERSION_CURRENT, */
- 1, 0, 0,
+ 1, 1, 0,
ABI_CLASS_XINPUT,
ABI_XINPUT_VERSION,
MOD_CLASS_XINPUT,
diff --git a/src/evdev.h b/src/evdev.h
index f31b160..797bc9f 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -63,6 +63,10 @@
#include <linux/input.h>
#include <xf86Xinput.h>
#include <errno.h>
+#include <string.h>
+#include <unistd.h>
+#include <stdio.h>
+#include <stdlib.h>
#define BITS_PER_LONG (sizeof(long) * 8)
#define NBITS(x) ((((x)-1)/BITS_PER_LONG)+1)
diff --git a/src/evdev_abs.c b/src/evdev_abs.c
index 90938d9..ded329a 100644
--- a/src/evdev_abs.c
+++ b/src/evdev_abs.c
@@ -37,18 +37,12 @@
#include <X11/XF86keysym.h>
#include <X11/extensions/XIproto.h>
-/* The libc wrapper just blows... linux/input.h must be included
- * before xf86_ansic.h and xf86_libc.h so we avoid defining ioctl
- * twice. */
-
#include <linux/input.h>
#include <misc.h>
#include <xf86.h>
#include <xf86str.h>
#include <xf86_OSproc.h>
-#include <xf86_ansic.h>
-#include <xf86_libc.h>
#include <xf86Xinput.h>
#include <exevents.h>
#include <mipointer.h>
diff --git a/src/evdev_btn.c b/src/evdev_btn.c
index 0bab4b4..a0e0dad 100644
--- a/src/evdev_btn.c
+++ b/src/evdev_btn.c
@@ -37,18 +37,12 @@
#include <X11/XF86keysym.h>
#include <X11/extensions/XIproto.h>
-/* The libc wrapper just blows... linux/input.h must be included
- * before xf86_ansic.h and xf86_libc.h so we avoid defining ioctl
- * twice. */
-
#include <linux/input.h>
#include <misc.h>
#include <xf86.h>
#include <xf86str.h>
#include <xf86_OSproc.h>
-#include <xf86_ansic.h>
-#include <xf86_libc.h>
#include <xf86Xinput.h>
#include <exevents.h>
#include <mipointer.h>
diff --git a/src/evdev_key.c b/src/evdev_key.c
index c98d336..74b383b 100644
--- a/src/evdev_key.c
+++ b/src/evdev_key.c
@@ -61,18 +61,12 @@
#include <X11/XF86keysym.h>
#include <X11/extensions/XIproto.h>
-/* The libc wrapper just blows... linux/input.h must be included
- * before xf86_ansic.h and xf86_libc.h so we avoid defining ioctl
- * twice. */
-
#include <linux/input.h>
#include <misc.h>
#include <xf86.h>
#include <xf86str.h>
#include <xf86_OSproc.h>
-#include <xf86_ansic.h>
-#include <xf86_libc.h>
#include <xf86Xinput.h>
#include <exevents.h>
#include <mipointer.h>
diff --git a/src/evdev_rel.c b/src/evdev_rel.c
index a6336f8..f6d6c75 100644
--- a/src/evdev_rel.c
+++ b/src/evdev_rel.c
@@ -37,18 +37,12 @@
#include <X11/XF86keysym.h>
#include <X11/extensions/XIproto.h>
-/* The libc wrapper just blows... linux/input.h must be included
- * before xf86_ansic.h and xf86_libc.h so we avoid defining ioctl
- * twice. */
-
#include <linux/input.h>
#include <misc.h>
#include <xf86.h>
#include <xf86str.h>
#include <xf86_OSproc.h>
-#include <xf86_ansic.h>
-#include <xf86_libc.h>
#include <xf86Xinput.h>
#include <exevents.h>
#include <mipointer.h>