blob: b4173e465f9afaba28fcee4b86944a472d544b96 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# XXX Patch churn from GSoC 2014, expect v4l_compat for now
--- evdev/genecodes.py.orig 2020-01-11 21:45:04 UTC
+++ evdev/genecodes.py
@@ -30,12 +30,8 @@ uname = ' '.join(uname)
#-----------------------------------------------------------------------------
template = r'''
#include <Python.h>
-#ifdef __FreeBSD__
-#include <dev/evdev/input.h>
-#else
#include <linux/input.h>
#include <linux/uinput.h>
-#endif
/* Automatically generated by evdev.genecodes */
/* Generated on %s */
--- evdev/input.c.orig 2020-01-11 23:01:08 UTC
+++ evdev/input.c
@@ -18,11 +18,7 @@
#include <fcntl.h>
#include <unistd.h>
-#ifdef __FreeBSD__
-#include <dev/evdev/input.h>
-#else
#include <linux/input.h>
-#endif
#ifndef input_event_sec
#define input_event_sec time.tv_sec
--- evdev/uinput.c.orig 2020-01-11 22:09:18 UTC
+++ evdev/uinput.c
@@ -8,13 +8,8 @@
#include <fcntl.h>
#include <unistd.h>
-#ifdef __FreeBSD__
-#include <dev/evdev/input.h>
-#include <dev/evdev/uinput.h>
-#else
#include <linux/input.h>
#include <linux/uinput.h>
-#endif
#ifndef input_event_sec
#define input_event_sec time.tv_sec
|