Github messages for voidlinux
 help / color / mirror / Atom feed
From: pullmoll <pullmoll@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] antimicrox: fix build w/ musl-1.2.1 (time64)
Date: Sun, 06 Dec 2020 10:23:57 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-26983@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 334 bytes --]

There is a new pull request by pullmoll against master on the void-packages repository

https://github.com/pullmoll/void-packages antimicrox
https://github.com/void-linux/void-packages/pull/26983

antimicrox: fix build w/ musl-1.2.1 (time64)


A patch file from https://github.com/void-linux/void-packages/pull/26983.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-antimicrox-26983.patch --]
[-- Type: text/x-diff, Size: 1539 bytes --]

From a7db5f3efd53e5da399af6f1548ae71dd8f49f48 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= <pullmoll@t-online.de>
Date: Sun, 6 Dec 2020 10:22:08 +0100
Subject: [PATCH] antimicrox: fix build w/ musl-1.2.1 (time64)

---
 srcpkgs/antimicrox/patches/time64.patch | 27 +++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 srcpkgs/antimicrox/patches/time64.patch

diff --git a/srcpkgs/antimicrox/patches/time64.patch b/srcpkgs/antimicrox/patches/time64.patch
new file mode 100644
index 00000000000..8d98f948e5e
--- /dev/null
+++ b/srcpkgs/antimicrox/patches/time64.patch
@@ -0,0 +1,27 @@
+--- src/eventhandlers/uinputeventhandler.cpp	2020-10-02 09:51:36.000000000 +0200
++++ src/eventhandlers/uinputeventhandler.cpp	2020-12-06 10:17:47.922175141 +0100
+@@ -498,9 +498,12 @@
+ {
+     struct input_event ev;
+     struct input_event ev2;
++    struct timeval tv;
+ 
+     memset(&ev, 0, sizeof(struct input_event));
+-    gettimeofday(&ev.time, nullptr);
++    gettimeofday(&tv, nullptr);
++    ev.input_event_sec = tv.tv_sec;
++    ev.input_event_usec = tv.tv_usec;
+     ev.type = type;
+     ev.code = code;
+     ev.value = value;
+@@ -510,7 +513,9 @@
+     if (syn)
+     {
+         memset(&ev2, 0, sizeof(struct input_event));
+-        gettimeofday(&ev2.time, nullptr);
++        gettimeofday(&tv, nullptr);
++        ev2.input_event_sec = tv.tv_sec;
++        ev2.input_event_usec = tv.tv_usec;
+         ev2.type = EV_SYN;
+         ev2.code = SYN_REPORT;
+         ev2.value = 0;

             reply	other threads:[~2020-12-06  9:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-06  9:23 pullmoll [this message]
2020-12-06 10:39 ` [PR PATCH] [Merged]: " pullmoll

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-26983@inbox.vuxu.org \
    --to=pullmoll@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).