This is a multi-part MIME message sent by reportbug.
Package: x11vnc
Followup-For: Bug #1067076
User:
ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
X-Debbugs-Cc:
michael.hudson@ubuntu.com
Control: tags -1 patch
Dear Maintainer,
In Ubuntu, the attached patch was applied to achieve the following:
* debian/patches/0007-use-clock_gettime-to-replace-gettimeofday.patch:
Use clock_gettime to replace gettimeofday.
Thanks for considering the patch.
-- System Information:
Debian Release: trixie/sid
APT prefers mantic-updates
APT policy: (500, 'mantic-updates'), (500, 'mantic-security'), (500, 'mantic'), (100, 'mantic-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.5.0-25-generic (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_NZ.UTF-8:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru x11vnc-0.9.16/debian/patches/0007-use-clock_gettime-to-replace-gettimeofday.patch x11vnc-0.9.16/debian/patches/0007-use-clock_gettime-to-replace-gettimeofday.patch
--- x11vnc-0.9.16/debian/patches/0007-use-clock_gettime-to-replace-gettimeofday.patch 1970-01-01 12:00:00.000000000 +1200
+++ x11vnc-0.9.16/debian/patches/0007-use-clock_gettime-to-replace-gettimeofday.patch 2024-03-21 15:26:54.000000000 +1300
@@ -0,0 +1,86 @@
+Description: Use clock_gettime to replace gettimeofday
+ So that the program is compatible with 64-bit time_t types on 32-bit systems +Author: Zixing Liu <
zixing.liu@canonical.com>
+Forwarded: no
+Last-Update: 2024-03-21
+
+Index: x11vnc/src/uinput.c +===================================================================
+--- x11vnc.orig/src/uinput.c
++++ x11vnc/src/uinput.c
+@@ -710,6 +710,7 @@ void parse_uinput_str(char *in) {
+ static void ptr_move(int dx, int dy) {
+ #ifdef UINPUT_OK
+ struct input_event ev;
++ struct timespec tv;
+ int d = direct_rel_fd < 0 ? fd : direct_rel_fd;
+
+ if (injectable && strchr(injectable, 'M') == NULL) {
+@@ -720,7 +721,9 @@ static void ptr_move(int dx, int dy) {
+
+ if (db) fprintf(stderr, "p