Author: Vignesh R <vignesh.r@timesys.com>
Date: Thu, 26 Nov 2020 11:36:21 +0530

---
 src/ts_setup.c    | 4 ++++
 tools/ts_uinput.c | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/src/ts_setup.c b/src/ts_setup.c
index e11db0e..0a4f9b2 100644
--- a/src/ts_setup.c
+++ b/src/ts_setup.c
@@ -48,6 +48,10 @@
 #define BITS_PER_LONG           (sizeof(long) * BITS_PER_BYTE)
 #define BITS_TO_LONGS(nr)       DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long))
 
+#ifndef EVIOCGPROP
+#define EVIOCGPROP(len)         _IOC(_IOC_READ, 'E', 0x09, len)         /* get device properties */
+#endif
+
 static int is_event_device(const struct dirent *dir)
 {
 	return strncmp(EVENT_DEV_NAME, dir->d_name, 5) == 0;
diff --git a/tools/ts_uinput.c b/tools/ts_uinput.c
index 912ff72..b5ccf34 100644
--- a/tools/ts_uinput.c
+++ b/tools/ts_uinput.c
@@ -115,6 +115,10 @@
 
 #define UINPUT_VERSION_HAVE_SYSNAME 4
 
+#ifndef SYN_MT_REPORT
+#define SYN_MT_REPORT           2
+#endif
+
 static char *defaultfbdevice = "/dev/fb0";
 
 struct data_t {
-- 
2.7.4

