Lines 1-16
Link Here
|
1 |
--- src/evdev.c.orig 2015-01-13 14:06:29.000000000 +0100 |
1 |
--- src/evdev.c.orig 2015-03-27 01:35:50 UTC |
2 |
+++ src/evdev.c 2015-01-13 14:11:54.000000000 +0100 |
2 |
+++ src/evdev.c |
3 |
@@ -39,7 +39,9 @@ |
3 |
@@ -37,9 +37,11 @@ |
|
|
4 |
#include <X11/keysym.h> |
5 |
#include <X11/extensions/XI.h> |
4 |
|
6 |
|
5 |
#include <linux/version.h> |
7 |
-#include <linux/version.h> |
6 |
#include <sys/stat.h> |
8 |
#include <sys/stat.h> |
7 |
+#ifdef __linux__ |
9 |
+#ifdef __linux__ |
|
|
10 |
+#include <linux/version.h> |
8 |
#include <libudev.h> |
11 |
#include <libudev.h> |
9 |
+#endif |
12 |
+#endif |
10 |
#include <unistd.h> |
13 |
#include <unistd.h> |
11 |
#include <errno.h> |
14 |
#include <errno.h> |
12 |
#include <fcntl.h> |
15 |
#include <fcntl.h> |
13 |
@@ -222,6 +224,7 @@ |
16 |
@@ -222,6 +224,7 @@ EvdevIsDuplicate(InputInfoPtr pInfo) |
14 |
static BOOL |
17 |
static BOOL |
15 |
EvdevDeviceIsVirtual(const char* devicenode) |
18 |
EvdevDeviceIsVirtual(const char* devicenode) |
16 |
{ |
19 |
{ |
Lines 18-24
Link Here
|
18 |
struct udev *udev = NULL; |
21 |
struct udev *udev = NULL; |
19 |
struct udev_device *device = NULL; |
22 |
struct udev_device *device = NULL; |
20 |
struct stat st; |
23 |
struct stat st; |
21 |
@@ -252,6 +255,9 @@ |
24 |
@@ -252,6 +255,9 @@ out: |
22 |
udev_device_unref(device); |
25 |
udev_device_unref(device); |
23 |
udev_unref(udev); |
26 |
udev_unref(udev); |
24 |
return rc; |
27 |
return rc; |
Lines 28-34
Link Here
|
28 |
} |
31 |
} |
29 |
|
32 |
|
30 |
#ifndef HAVE_SMOOTH_SCROLLING |
33 |
#ifndef HAVE_SMOOTH_SCROLLING |
31 |
@@ -1078,11 +1084,13 @@ |
34 |
@@ -1086,11 +1092,13 @@ EvdevReadInput(InputInfoPtr pInfo) |
32 |
do { |
35 |
do { |
33 |
rc = libevdev_next_event(pEvdev->dev, LIBEVDEV_READ_FLAG_NORMAL, &ev); |
36 |
rc = libevdev_next_event(pEvdev->dev, LIBEVDEV_READ_FLAG_NORMAL, &ev); |
34 |
if (rc < 0) { |
37 |
if (rc < 0) { |
Lines 44-50
Link Here
|
44 |
break; |
47 |
break; |
45 |
} else if (rc == LIBEVDEV_READ_STATUS_SUCCESS) { |
48 |
} else if (rc == LIBEVDEV_READ_STATUS_SUCCESS) { |
46 |
#ifdef MULTITOUCH |
49 |
#ifdef MULTITOUCH |
47 |
@@ -1436,10 +1444,15 @@ |
50 |
@@ -1470,10 +1478,15 @@ EvdevAddAbsValuatorClass(DeviceIntPtr de |
48 |
continue; |
51 |
continue; |
49 |
|
52 |
|
50 |
abs = libevdev_get_abs_info(pEvdev->dev, axis); |
53 |
abs = libevdev_get_abs_info(pEvdev->dev, axis); |