| 1 |
Descriptionscip-debian debian clanlib 1.0~svn3827-12 clanlib/patches/`64-bit-time-t-compat.patch`#Description.: compatibility with 64-bit time_t |
| 2 |
linux/input.h uses a different structure when time_t is 64-bit, so |
| 3 |
patch around this. |
| 4 |
Authorscip-debian debian clanlib 1.0~svn3827-12 clanlib/patches/`64-bit-time-t-compat.patch`#Author.: Steve Langasek <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 5 |
Bug-Debianscip-debian debian clanlib 1.0~svn3827-12 clanlib/patches/`64-bit-time-t-compat.patch`#Bug-Debian.: https://bugs.debian.org/1067616scip-debian-bts debian-bts . . 1067616: |
| 6 |
Last-Updatescip-debian debian clanlib 1.0~svn3827-12 clanlib/patches/`64-bit-time-t-compat.patch`#Last-Update.: 2024-04-25 |
| 7 |
Forwardedscip-debian debian clanlib 1.0~svn3827-12 clanlib/patches/`64-bit-time-t-compat.patch`#Forwarded.: no |
| 8 |
|
| 9 |
Index: clanlib-1.0~svn3827/Sources/GL/GLX/input_device_linuxevent.cppscip-debian debian clanlib 1.0~svn3827-12 clanlib/upstream/`clanlib-1.0~svn3827/Sources/GL/GLX/input_device_linuxevent.cpp`: |
| 10 |
=================================================================== |
| 11 |
--- clanlib-1.0~svn3827.orig/Sources/GL/GLX/input_device_linuxevent.cppscip-debian debian clanlib 1.0~svn3827-12 clanlib/upstream/`clanlib-1.0~svn3827.orig/Sources/GL/GLX/input_device_linuxevent.cpp`: |
| 12 |
+++ clanlib-1.0~svn3827/Sources/GL/GLX/input_device_linuxevent.cpp |
| 13 |
@@ -42,6 +42,16 @@ |
| 14 |
#include "API/Display/input_event.h" |
| 15 |
#include "input_device_linuxevent.h" |
| 16 |
|
| 17 |
+/* The field to look up in struct input_event for integer seconds */ |
| 18 |
+#ifndef input_event_sec |
| 19 |
+#define input_event_sec time.tv_sec |
| 20 |
+#endif |
| 21 |
+ |
| 22 |
+/* The field to look up in struct input_event for fractional seconds */ |
| 23 |
+#ifndef input_event_usec |
| 24 |
+#define input_event_usec time.tv_usec |
| 25 |
+#endif |
| 26 |
+ |
| 27 |
// FIXME: These three should be in linux/input.h |
| 28 |
#define MSC_RAW 0x03 |
| 29 |
#define MSC_SCAN 0x04 |
| 30 |
@@ -266,12 +276,12 @@ |
| 31 |
if (ev[i].type == EV_SYN) |
| 32 |
{ |
| 33 |
printf("Event: time %ld.%06ld, -------------- %s ------------\n", |
| 34 |
|
| 35 |
+ ev[i].input_event_sec, ev[i].input_event_usec, ev[i].code ? "Config Sync" : "Report Sync" ); |
| 36 |
} |
| 37 |
else if (ev[i].type == EV_MSC && (ev[i].code == MSC_RAW || ev[i].code == MSC_SCAN)) |
| 38 |
{ |
| 39 |
printf("Event: time %ld.%06ld, type %d (%s), code %d (%s), value %02x\n", |
| 40 |
|
| 41 |
+ ev[i].input_event_sec, ev[i].input_event_usec, ev[i].type, |
| 42 |
events[ev[i].type] ? events[ev[i].type] : "?", |
| 43 |
ev[i].code, |
| 44 |
names[ev[i].type] ? (names[ev[i].type][ev[i].code] ? names[ev[i].type][ev[i].code] : "?") : "?", |
| 45 |
@@ -280,7 +290,7 @@ |
| 46 |
else |
| 47 |
{ |
| 48 |
printf("Event: time %ld.%06ld, type %d (%s), code %d (%s), value %d\n", |
| 49 |
|
| 50 |
+ ev[i].input_event_sec, ev[i].input_event_usec, ev[i].type, |
| 51 |
events[ev[i].type] ? events[ev[i].type] : "?", |
| 52 |
ev[i].code, |
| 53 |
names[ev[i].type] ? (names[ev[i].type][ev[i].code] ? names[ev[i].type][ev[i].code] : "?") : "?", |